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

Function ExampleFile

script_test.go:2220–2224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2218}
2219
2220func ExampleFile() {
2221 script.File("testdata/hello.txt").Stdout()
2222 // Output:
2223 // hello world
2224}
2225
2226func ExampleGet() {
2227 ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 2

FileFunction · 0.92
StdoutMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…