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

Struct ParseError

error.go:60–64  ·  view source on GitHub ↗

ParseError occurs when it's impossible to convert the value for given type.

Source from the content-addressed store, hash-verified

58
59// ParseError occurs when it's impossible to convert the value for given type.
60type ParseError struct {
61 Name string
62 Type reflect.Type
63 Err error
64}
65
66func newParseError(sf reflect.StructField, err error) error {
67 return ParseError{sf.Name, sf.Type, err}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected