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

Function Get

script.go:116–118  ·  view source on GitHub ↗

Get creates a pipe that makes an HTTP GET request to url, and produces the response. See [Pipe.Do] for how the HTTP response status is interpreted.

(url string)

Source from the content-addressed store, hash-verified

114// Get creates a pipe that makes an HTTP GET request to url, and produces the
115// response. See [Pipe.Do] for how the HTTP response status is interpreted.
116func Get(url string) *Pipe {
117 return NewPipe().Get(url)
118}
119
120// IfExists tests whether path exists, and creates a pipe whose error status
121// reflects the result. If the file doesn't exist, the pipe's error status will

Calls 2

NewPipeFunction · 0.85
GetMethod · 0.80