()
| 2246 | } |
| 2247 | |
| 2248 | func ExamplePipe_Bytes() { |
| 2249 | data, err := script.Echo("hello").Bytes() |
| 2250 | if err != nil { |
| 2251 | panic(err) |
| 2252 | } |
| 2253 | fmt.Printf("%v\n", data) |
| 2254 | // Output: |
| 2255 | // [104 101 108 108 111] |
| 2256 | } |
| 2257 | |
| 2258 | func ExamplePipe_Column() { |
| 2259 | input := []string{ |