()
| 8 | ) |
| 9 | |
| 10 | func ExampleScanTokens() { |
| 11 | var values []string |
| 12 | |
| 13 | ScanTokens([]byte(`a,b,c`), func(v []byte) bool { |
| 14 | values = append(values, string(v)) |
| 15 | return v[0] != 'b' |
| 16 | }) |
| 17 | |
| 18 | fmt.Println(values) |
| 19 | // Output: [a b] |
| 20 | } |
| 21 | |
| 22 | func ExampleScanOptions() { |
| 23 | foo := map[string]string{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…