Documentation ¶
Index ¶
- Variables
- type Config
- func (c *Config) GetBool(key string) (bool, error)
- func (c *Config) GetInt(key string) (int, error)
- func (c *Config) GetInt64(key string) (int64, error)
- func (c *Config) GetString(key string) (string, error)
- func (c *Config) GetUint64(key string) (uint64, error)
- func (c *Config) Read(r io.Reader) error
- func (c *Config) SetBool(key string, v bool)
- func (c *Config) SetInt(key string, n int)
- func (c *Config) SetInt64(key string, n int64)
- func (c *Config) SetString(key string, value string)
- func (c *Config) SetUint64(key string, n uint64)
- func (c *Config) Write(w io.Writer) error
- func (c *Config) WriteFile(filePath string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNil = errors.New("nil value")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
func ReadConfig ¶
func ReadConfigFile ¶
Click to show internal directories.
Click to hide internal directories.