()
| 2349 | } |
| 2350 | |
| 2351 | func ExamplePipe_First() { |
| 2352 | script.Echo("a\nb\nc\n").First(2).Stdout() |
| 2353 | // Output: |
| 2354 | // a |
| 2355 | // b |
| 2356 | } |
| 2357 | |
| 2358 | func ExamplePipe_Filter() { |
| 2359 | script.Echo("hello world").Filter(func(r io.Reader, w io.Writer) error { |