- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleScanner_custom (0.2 sec)
-
src/bufio/example_test.go
} fmt.Printf("%d\n", count) // Output: 15 } // Use a Scanner with a custom split function (built by wrapping ScanWords) to validate // 32-bit decimal input. func ExampleScanner_custom() { // An artificial input source. const input = "1234 5678 1234567901234567890" scanner := bufio.NewScanner(strings.NewReader(input)) // Create a custom split function by wrapping the existing ScanWords function.
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Mon Oct 23 09:06:30 GMT 2023 - 4.9K bytes - Viewed (0)