Documentation ¶
Index ¶
- Variables
- func MergeGlobalDefaults(m map[string]interface{})
- func Viper() *viper.Viper
- type Config
- func (c *Config) AppDebug() bool
- func (c *Config) AppName() string
- func (c *Config) DBDebug() bool
- func (c *Config) GetConfigFile() string
- func (c *Config) Load()
- func (c *Config) SetConfigFile(f string)
- func (c *Config) SetValue(k string, val interface{})
- func (c *Config) SetViper(v *viper.Viper)
- func (c *Config) V() *viper.Viper
- func (c *Config) Write2tempCall(fn func(v *viper.Viper))
Constants ¶
This section is empty.
Variables ¶
View Source
var C = new(Config)
Functions ¶
func MergeGlobalDefaults ¶
func MergeGlobalDefaults(m map[string]interface{})
Types ¶
type Config ¶
func (*Config) Write2tempCall ¶
Click to show internal directories.
Click to hide internal directories.