Codebase list golang-github-beorn7-perks / fd7701c
readFloats -> sendFloats Blake Mizerany 11 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1313
1414 func Example_simple() {
1515 ch := make(chan float64)
16 go readFloats(ch)
16 go sendFloats(ch)
1717
1818 // Compute the 50th, 90th, and 99th percentile.
1919 q := quantile.NewTargeted(0.50, 0.90, 0.99)
9090 // servers via http or something like it.
9191 func getDBQuerySamples(ch chan quantile.Samples) {}
9292
93 func readFloats(ch chan<- float64) {
93 func sendFloats(ch chan<- float64) {
9494 f, err := os.Open("exampledata.txt")
9595 if err != nil {
9696 log.Fatal(err)