Documentation ¶
Index ¶
- type TOMLConfig
- type TOMLConfigContainer
- func (c *TOMLConfigContainer) Bool(key string) (bool, error)
- func (c *TOMLConfigContainer) DIY(key string) (interface{}, error)
- func (c *TOMLConfigContainer) DefaultBool(key string, defaultVal bool) bool
- func (c *TOMLConfigContainer) DefaultFloat(key string, defaultVal float64) float64
- func (c *TOMLConfigContainer) DefaultInt(key string, defaultVal int) int
- func (c *TOMLConfigContainer) DefaultInt64(key string, defaultVal int64) int64
- func (c *TOMLConfigContainer) DefaultString(key string, defaultVal string) string
- func (c *TOMLConfigContainer) DefaultStrings(key string, defaultVal []string) []string
- func (c *TOMLConfigContainer) Float(key string) (float64, error)
- func (c *TOMLConfigContainer) GetSection(section string) (map[string]string, error)
- func (c *TOMLConfigContainer) Int(key string) (int, error)
- func (c *TOMLConfigContainer) Int64(key string) (int64, error)
- func (c *TOMLConfigContainer) SaveConfigFile(filename string) error
- func (c *TOMLConfigContainer) Set(key, val string) error
- func (c *TOMLConfigContainer) String(key string) string
- func (c *TOMLConfigContainer) Strings(key string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TOMLConfig ¶
type TOMLConfig struct{}
JSONConfig is a toml config parser and implements Config interface.
type TOMLConfigContainer ¶
func (*TOMLConfigContainer) DIY ¶
func (c *TOMLConfigContainer) DIY(key string) (interface{}, error)
func (*TOMLConfigContainer) DefaultBool ¶
func (c *TOMLConfigContainer) DefaultBool(key string, defaultVal bool) bool
func (*TOMLConfigContainer) DefaultFloat ¶
func (c *TOMLConfigContainer) DefaultFloat(key string, defaultVal float64) float64
func (*TOMLConfigContainer) DefaultInt ¶
func (c *TOMLConfigContainer) DefaultInt(key string, defaultVal int) int
func (*TOMLConfigContainer) DefaultInt64 ¶
func (c *TOMLConfigContainer) DefaultInt64(key string, defaultVal int64) int64
func (*TOMLConfigContainer) DefaultString ¶
func (c *TOMLConfigContainer) DefaultString(key string, defaultVal string) string
func (*TOMLConfigContainer) DefaultStrings ¶
func (c *TOMLConfigContainer) DefaultStrings(key string, defaultVal []string) []string
func (*TOMLConfigContainer) Float ¶
func (c *TOMLConfigContainer) Float(key string) (float64, error)
func (*TOMLConfigContainer) GetSection ¶
func (c *TOMLConfigContainer) GetSection(section string) (map[string]string, error)
func (*TOMLConfigContainer) SaveConfigFile ¶
func (c *TOMLConfigContainer) SaveConfigFile(filename string) error
func (*TOMLConfigContainer) Set ¶
func (c *TOMLConfigContainer) Set(key, val string) error
func (*TOMLConfigContainer) String ¶
func (c *TOMLConfigContainer) String(key string) string
func (*TOMLConfigContainer) Strings ¶
func (c *TOMLConfigContainer) Strings(key string) []string
Click to show internal directories.
Click to hide internal directories.