Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.1.6
func New(opts ...Option) (*Configurator, error)
func (*Configurator) LoadEnv ¶
func (cfg *Configurator) LoadEnv(output any) error
LoadEnv loads the environment variables into the struct
func (*Configurator) LoadEnvFromFile ¶
func (cfg *Configurator) LoadEnvFromFile(output any) error
LoadEnvFromFile loads the environment variables into the struct
func (*Configurator) LoadSettings ¶
func (cfg *Configurator) LoadSettings(environment string, settings any) error
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithConfigPath ¶
func WithEnvPath ¶
func WithOptionalEnv ¶
func WithRequiredEnv ¶
Click to show internal directories.
Click to hide internal directories.