Documentation ¶
Index ¶
- type ConfigLoader
- type ConfigValidator
- type Option
- func WithConfigFile(file string) Option
- func WithConfigLookupDir(file string) Option
- func WithConfigValidator(validator ConfigValidator) Option
- func WithDecodeHookFunc(hook mapstructure.DecodeHookFunc) Option
- func WithDefaultConfigFilename(name string) Option
- func WithEnvPrefix(prefix string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigLoader ¶
func New ¶
func New(opts ...Option) ConfigLoader
type ConfigValidator ¶
type Option ¶
type Option func(*opts)
func WithConfigFile ¶
func WithConfigLookupDir ¶
func WithConfigValidator ¶
func WithConfigValidator(validator ConfigValidator) Option
func WithDecodeHookFunc ¶
func WithDecodeHookFunc(hook mapstructure.DecodeHookFunc) Option
func WithEnvPrefix ¶
Click to show internal directories.
Click to hide internal directories.