MCPcopy
hub / github.com/bitfield/script / ExamplePipe_HashSums

Function ExamplePipe_HashSums

script_test.go:2451–2457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2449}
2450
2451func ExamplePipe_HashSums() {
2452 script.ListFiles("testdata/multiple_files").HashSums(sha256.New()).Stdout()
2453 // Output:
2454 // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2455 // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2456 // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2457}
2458
2459func ExamplePipe_Join() {
2460 script.Echo("hello\nworld\n").Join().Stdout()

Callers

nothing calls this directly

Calls 3

ListFilesFunction · 0.92
StdoutMethod · 0.80
HashSumsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…