()
| 20 | } |
| 21 | |
| 22 | func ExampleScanOptions() { |
| 23 | foo := map[string]string{} |
| 24 | |
| 25 | ScanOptions([]byte(`foo;bar=1;baz`), func(index int, key, param, value []byte) Control { |
| 26 | foo[string(param)] = string(value) |
| 27 | return ControlContinue |
| 28 | }) |
| 29 | |
| 30 | fmt.Printf("bar:%s baz:%s", foo["bar"], foo["baz"]) |
| 31 | // Output: bar:1 baz: |
| 32 | } |
| 33 | |
| 34 | func ExampleParseOptions() { |
| 35 | options, ok := ParseOptions([]byte(`foo;bar=1,baz`), nil) |
nothing calls this directly
no test coverage detected
searching dependent graphs…