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

Function ExamplePipe_SHA256Sum

script_test.go:2549–2557  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2547}
2548
2549func 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
2559func ExamplePipe_SHA256Sums() {
2560 script.Echo("testdata/test.txt").SHA256Sums().Stdout()

Callers

nothing calls this directly

Calls 2

EchoFunction · 0.92
SHA256SumMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…