Categorygithub.com/coopnorge/member-lib/configloader
modulepackage
0.0.5
Repository: https://github.com/coopnorge/member-lib.git
Documentation: pkg.go.dev

# Functions

Load populates a struct's fields with values from environment variables.
WithDefaultTag sets the struct tag used for specifying default values.
WithEnv sets a custom function for looking up environment variables.
WithEnvTag sets the struct tag used to completely override the environment variable name for a field.
WithNameTag sets the struct tag used to override a field's name in the environment variable path.
WithPrefix sets a prefix that will be prepended to all environment variable names.
WithTypeHandler registers a custom type conversion function for a specific type T.

# Structs

ConfigLoadError represents the errors that occurred during config loading.
No description provided by the author
FieldError represents an error that occurred while processing a specific field.
No description provided by the author
MissingEnvError represents an error when a required environment variable is not found.
UnsupportedTypeError represents an error when trying to process a field with an unsupported type.

# Type aliases

No description provided by the author