()
| 2547 | } |
| 2548 | |
| 2549 | func ExamplePipe_SHA256Sum() { |
| 2550 | sum, err := script.Echo("hello world").SHA256Sum() |
| 2551 | if err != nil { |
| 2552 | panic(err) |
| 2553 | } |
| 2554 | fmt.Println(sum) |
| 2555 | // Output: |
| 2556 | // b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9 |
| 2557 | } |
| 2558 | |
| 2559 | func ExamplePipe_SHA256Sums() { |
| 2560 | script.Echo("testdata/test.txt").SHA256Sums().Stdout() |