MCPcopy Create free account
hub / github.com/gorilla/websocket / proxy_envOnce

Struct proxy_envOnce

x_net_proxy.go:253–257  ·  view source on GitHub ↗

envOnce looks up an environment variable (optionally by multiple names) once. It mitigates expensive lookups on some platforms (e.g. Windows). (Borrowed from net/http/transport.go)

Source from the content-addressed store, hash-verified

251// (e.g. Windows).
252// (Borrowed from net/http/transport.go)
253type proxy_envOnce struct {
254 names []string
255 once sync.Once
256 val string
257}
258
259func (e *proxy_envOnce) Get() string {
260 e.once.Do(e.init)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected