MCPcopy Create free account
hub / github.com/caarlos0/env / VarIsNotSetError

Struct VarIsNotSetError

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

VarIsNotSetError occurs when the required variable is not set.

Source from the content-addressed store, hash-verified

114
115// VarIsNotSetError occurs when the required variable is not set.
116type VarIsNotSetError struct {
117 Key string
118}
119
120func newVarIsNotSetError(key string) error {
121 return VarIsNotSetError{key}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected