()
| 2631 | } |
| 2632 | |
| 2633 | func ExampleSlice() { |
| 2634 | input := []string{"1", "2", "3"} |
| 2635 | script.Slice(input).Stdout() |
| 2636 | // Output: |
| 2637 | // 1 |
| 2638 | // 2 |
| 2639 | // 3 |
| 2640 | } |
| 2641 | |
| 2642 | // A string containing a line longer than bufio.MaxScanTokenSize, for testing |
| 2643 | // methods that buffer input. We want to make sure they don't throw |