readFloats -> sendFloats
Blake Mizerany
11 years ago
13 | 13 | |
14 | 14 | func Example_simple() { |
15 | 15 | ch := make(chan float64) |
16 | go readFloats(ch) | |
16 | go sendFloats(ch) | |
17 | 17 | |
18 | 18 | // Compute the 50th, 90th, and 99th percentile. |
19 | 19 | q := quantile.NewTargeted(0.50, 0.90, 0.99) |
90 | 90 | // servers via http or something like it. |
91 | 91 | func getDBQuerySamples(ch chan quantile.Samples) {} |
92 | 92 | |
93 | func readFloats(ch chan<- float64) { | |
93 | func sendFloats(ch chan<- float64) { | |
94 | 94 | f, err := os.Open("exampledata.txt") |
95 | 95 | if err != nil { |
96 | 96 | log.Fatal(err) |