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

Function ExamplePipe_Match

script_test.go:2481–2485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2479}
2480
2481func ExamplePipe_Match() {
2482 script.Echo("a\nb\nc\n").Match("b").Stdout()
2483 // Output:
2484 // b
2485}
2486
2487func ExamplePipe_MatchRegexp() {
2488 re := regexp.MustCompile("w.*d")

Callers

nothing calls this directly

Calls 3

EchoFunction · 0.92
StdoutMethod · 0.80
MatchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…