MCPcopy Create free account
hub / github.com/chain/Core / URL

Function URL

env/env.go:102–106  ·  view source on GitHub ↗

URL returns a new url.URL pointer. When Parse is called, env var name will be parsed and the resulting value will be assigned to the returned location. URL panics if there is an error parsing the given default value.

(name string, value string)

Source from the content-addressed store, hash-verified

100// URL panics if there is an error parsing
101// the given default value.
102func URL(name string, value string) *url.URL {
103 p := new(url.URL)
104 URLVar(p, name, value)
105 return p
106}
107
108// URLVar defines a url.URL variable with
109// the specified name ande default value.

Callers 1

TestURLFunction · 0.85

Calls 1

URLVarFunction · 0.85

Tested by 1

TestURLFunction · 0.68