MCPcopy
hub / github.com/bitfield/script / ExamplePipe_First

Function ExamplePipe_First

script_test.go:2351–2356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

EchoFunction · 0.92
StdoutMethod · 0.80
FirstMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…