Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterParser ¶
func RegisterParser(ext string, parser FileParser)
RegisterParser registers a file parser for a particular extension
Types ¶
type Loader ¶
type Loader[C any] struct { // AllowNoSources supresses errors when no configuration data sources can be found. When set to false (default), if none of the listed config files are found and no environment variables match config struct field names, an error will be returned AllowNoSources bool // EnvPrefix sets the prefix for environment variables to load from. Will be suffixed with an underscore (_) before field names EnvPrefix string }
Click to show internal directories.
Click to hide internal directories.