Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(*option)
func WithEnv ¶
WithEnv sets the environment variables to load and disable from the system environment.
func WithEnvFile ¶
func WithHooks ¶
WithHooks sets the hooks for the environment loader.
- if return type matches the field type, return value is assigned to the field
func WithPrefix ¶
WithPrefix to just load the environment variables with the given prefix.
- if prefix is "APP_", then only the environment variables with the prefix "APP_" are loaded.
- prefix will strip from the field name.
Click to show internal directories.
Click to hide internal directories.