- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleSectionReader (0.13 sec)
-
src/io/example_test.go
// Everything read from r will be copied to stdout. if _, err := io.ReadAll(r); err != nil { log.Fatal(err) } // Output: // some io.Reader stream to be read } func ExampleSectionReader() { r := strings.NewReader("some io.Reader stream to be read\n") s := io.NewSectionReader(r, 5, 17) if _, err := io.Copy(os.Stdout, s); err != nil { log.Fatal(err) } // Output:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:49:32 UTC 2022 - 5.5K bytes - Viewed (0)