Documentation ¶
Index ¶
- type GoConfig
- func (c *GoConfig) Add(key string, defaultValue interface{}, usage string)
- func (c *GoConfig) AddConfigurationPaths(paths ...string)
- func (c *GoConfig) BindFlags()
- func (c *GoConfig) GetBool(key string) bool
- func (c *GoConfig) GetFloat64(key string) float64
- func (c *GoConfig) GetInt(key string) int
- func (c *GoConfig) GetInt64(key string) int64
- func (c *GoConfig) GetString(key string) string
- func (c *GoConfig) PrintConfig()
- func (c *GoConfig) PrintDebugConfig()
- func (c *GoConfig) ReadConfig()
- func (c *GoConfig) SetConfigName(filename string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoConfig ¶
type GoConfig struct {
// contains filtered or unexported fields
}
GoConfig hold the configuration.
func (*GoConfig) AddConfigurationPaths ¶
AddConfigurationPaths adds the paths where to find the configuration file.
func (*GoConfig) BindFlags ¶
func (c *GoConfig) BindFlags()
BindFlags binds configuration elements to flags.
func (*GoConfig) GetFloat64 ¶
GetFloat64 gets the value as float64.
func (*GoConfig) PrintConfig ¶
func (c *GoConfig) PrintConfig()
PrintConfig prints the configuration.
func (*GoConfig) PrintDebugConfig ¶
func (c *GoConfig) PrintDebugConfig()
PrintDebugConfig prints configuration with resolution steps.
func (*GoConfig) SetConfigName ¶
SetConfigName sets the configuration filename.
Click to show internal directories.
Click to hide internal directories.