- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleScanner_Bytes (0.39 sec)
-
src/bufio/example_test.go
} if err := scanner.Err(); err != nil { fmt.Fprintln(os.Stderr, "reading standard input:", err) } } // Return the most recent call to Scan as a []byte. func ExampleScanner_Bytes() { scanner := bufio.NewScanner(strings.NewReader("gopher")) for scanner.Scan() { fmt.Println(len(scanner.Bytes()) == 6) } if err := scanner.Err(); err != nil {
Registered: Tue Oct 29 11:13:09 UTC 2024 - Last Modified: Mon Oct 23 09:06:30 UTC 2023 - 4.9K bytes - Viewed (0)