Documentation ¶
Overview ¶
Package envparse provides a way to parse environment variables from a struct
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSpecification = errors.New("specification must be a struct pointer")
ErrInvalidSpecification indicates that a specification is of the wrong type.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // FieldTagName is the name of the struct tag to use for the field name FieldTagName string // Skipper is the value of the tag to skip parsing of the field Skipper string }
func (Config) GatherEnvInfo ¶
GatherEnvInfo gathers information about the specified struct, including defaults and environment variable names.
Click to show internal directories.
Click to hide internal directories.