()
| 2285 | } |
| 2286 | |
| 2287 | func ExamplePipe_CountLines() { |
| 2288 | n, err := script.Echo("a\nb\nc\n").CountLines() |
| 2289 | if err != nil { |
| 2290 | panic(err) |
| 2291 | } |
| 2292 | fmt.Println(n) |
| 2293 | // Output: |
| 2294 | // 3 |
| 2295 | } |
| 2296 | |
| 2297 | func ExamplePipe_DecodeBase64() { |
| 2298 | script.Echo("SGVsbG8sIHdvcmxkIQ==").DecodeBase64().Stdout() |
nothing calls this directly
no test coverage detected
searching dependent graphs…