Documentation ¶
Overview ¶
Package env provides a simple and flexible way of interacting with ENVs directly from and to Go types.
The flexibility of the package stems from the encoding.TextMarshaler and encoding.TextUnmarshaler interfaces, which allows ENVs to be parsed to non-native and user-defined types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnset represents a missing ENV. ErrUnset error = errors.New("unset env") // ErrMarshaler represents a failure parsing any type to a string ENV. ErrMarshaler error = errors.New("type doesn't implement encoding.TextMarshaler") // ErrUnmarshaler represents a failure parsing an existing ENV to the any type. ErrUnmarshaler error = errors.New("type doesn't implement encoding.TextUnmarshaler") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.