MCPcopy Index your code
hub / github.com/bitfield/script / ExamplePipe_Slice

Function ExamplePipe_Slice

script_test.go:2565–2573  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2563}
2564
2565func ExamplePipe_Slice() {
2566 s, err := script.Echo("a\nb\nc\n").Slice()
2567 if err != nil {
2568 panic(err)
2569 }
2570 fmt.Println(s)
2571 // Output:
2572 // [a b c]
2573}
2574
2575func ExamplePipe_Stdout() {
2576 n, err := script.Echo("a\nb\nc\n").Stdout()

Callers

nothing calls this directly

Calls 2

EchoFunction · 0.92
SliceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…