MCPcopy Create free account
hub / github.com/gobwas/httphead / ExampleScanTokens

Function ExampleScanTokens

httphead_test.go:10–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func 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
22func ExampleScanOptions() {
23 foo := map[string]string{}

Callers

nothing calls this directly

Calls 1

ScanTokensFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…