Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug()
Only used for debug purpose during development (print to standard output) DO NOT USE IT IN PRODUCTION OR CRITICAL INFORMATION FROM CONF MAY BE STORED IN LOG SERVERS WARNING: this will print the entire configuration!
func InitAndLoad ¶
func InitAndLoad(configStruct interface{}) error
func InitAndLoadWithParams ¶ added in v0.2.0
func InitAndLoadWithParamsAndLogger ¶ added in v0.2.0
func InitAndLoadWithParamsAndLogger(configStruct interface{}, cfgFile string, prefix string, logger Logger) error
Prefix must be unique in between each projects. Env variables are only set if a prefix has been set if cfgFile == "", it will used config.yaml in the directory where the executable is located. else it will use cfgFile (full path required)
Types ¶
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
func (*DefaultLogger) Printf ¶
func (p *DefaultLogger) Printf(format string)
Click to show internal directories.
Click to hide internal directories.