Documentation ¶
Index ¶
- type Config
- func (c *Config) BindStruct(key string, data any) error
- func (c *Config) Bool(key string, defVal ...bool) bool
- func (c *Config) Duration(key string, defVal ...time.Duration) time.Duration
- func (c *Config) Exists(key string) bool
- func (c *Config) Float(key string, defVal ...float64) float64
- func (c *Config) Int(key string, defVal ...int) int
- func (c *Config) Int64(key string, defVal ...int64) int64
- func (c *Config) LoadDir(dirPath string) error
- func (c *Config) LoadFile(filePath string) error
- func (c *Config) String(key string, defVal ...string) string
- func (c *Config) Uint(key string, defVal ...uint) uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Click to show internal directories.
Click to hide internal directories.