- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleSeeker_Seek (0.21 sec)
-
src/io/example_test.go
func ExampleSectionReader_Size() { r := strings.NewReader("some io.Reader stream to be read\n") s := io.NewSectionReader(r, 5, 17) fmt.Println(s.Size()) // Output: // 17 } func ExampleSeeker_Seek() { r := strings.NewReader("some io.Reader stream to be read\n") r.Seek(5, io.SeekStart) // move to the 5th char from the start if _, err := io.Copy(os.Stdout, r); err != nil { log.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:49:32 UTC 2022 - 5.5K bytes - Viewed (0)