Documentation ¶
Index ¶
- type Config
- func (c *Config) Bool(section, key string) (bool, error)
- func (this *Config) ConfigLock()
- func (this *Config) ConfigRLock()
- func (this *Config) ConfigRUnlock()
- func (this *Config) ConfigUnlock()
- func (c *Config) Float64(section, key string) (float64, error)
- func (this *Config) Int(section, key string) (int, error)
- func (this *Config) Int64(section, key string) (int64, error)
- func (this *Config) IsChange() bool
- func (this *Config) MustBool(section, key string, defaultval bool) bool
- func (this *Config) MustFloat64(section, key string, defaultval float64) float64
- func (this *Config) MustInt(section, key string, defaultval int) int
- func (this *Config) MustInt64(section, key string, defaultval int64) int64
- func (this *Config) MustString(section, key string, defaultval string) string
- func (this *Config) MustStringSlice(section, key string, defaultval []string) []string
- func (this *Config) SetChange(b bool)
- func (this *Config) UpdateConfig(r io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func LoadConfigByFile ¶
func LoadConfigByZK ¶
func (*Config) ConfigLock ¶
func (this *Config) ConfigLock()
func (*Config) ConfigRLock ¶
func (this *Config) ConfigRLock()
func (*Config) ConfigRUnlock ¶
func (this *Config) ConfigRUnlock()
func (*Config) ConfigUnlock ¶
func (this *Config) ConfigUnlock()
func (*Config) MustFloat64 ¶
func (*Config) MustString ¶
func (*Config) MustStringSlice ¶
Click to show internal directories.
Click to hide internal directories.