()
| 2539 | } |
| 2540 | |
| 2541 | func ExamplePipe_ReplaceRegexp() { |
| 2542 | re := regexp.MustCompile("w.*d") |
| 2543 | script.Echo("hello\nworld\n").ReplaceRegexp(re, "replacement").Stdout() |
| 2544 | // Output: |
| 2545 | // hello |
| 2546 | // replacement |
| 2547 | } |
| 2548 | |
| 2549 | func ExamplePipe_SHA256Sum() { |
| 2550 | sum, err := script.Echo("hello world").SHA256Sum() |
nothing calls this directly
no test coverage detected
searching dependent graphs…