Documentation
¶
Index ¶
- Constants
- func WithEnvVars() func(*MirConfig)
- func WithEtcFilePath(fileName string, cff configFormat, devOnly bool) func(*MirConfig)
- func WithFilePath(path string, cff configFormat, devOnly bool) func(*MirConfig)
- func WithFlagRegisterFilePath(flag string, path string, cff configFormat, devOnly bool) func(*MirConfig)
- func WithXdgConfigHomeFilePath(fileName string, cff configFormat, devOnly bool) func(*MirConfig)
- type MirConfig
- func (s *MirConfig) All() map[string]any
- func (s *MirConfig) Get(path string) any
- func (s *MirConfig) Load() (errs error, warns error)
- func (s *MirConfig) LoadAndUnmarshal(out any) (errs error, warns error)
- func (s *MirConfig) Set(key string, val any) error
- func (s *MirConfig) Unmarshal(out any) error
Constants ¶
View Source
const ( Yaml configFormat = "yaml" Json configFormat = "json" )
Variables ¶
This section is empty.
Functions ¶
func WithEnvVars ¶
func WithEnvVars() func(*MirConfig)
func WithEtcFilePath ¶
func WithFilePath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.