- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleScanner_emptyFinalToken (0.23 sec)
-
src/bufio/example_test.go
// Invalid input: strconv.ParseInt: parsing "1234567901234567890": value out of range } // Use a Scanner with a custom split function to parse a comma-separated // list with an empty final value. func ExampleScanner_emptyFinalToken() { // Comma-separated list; last entry is empty. const input = "1,2,3,4," scanner := bufio.NewScanner(strings.NewReader(input)) // Define a split function that separates on commas.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Oct 23 09:06:30 GMT 2023 - 4.9K bytes - Viewed (0)