Documentation ¶
Index ¶
- Variables
- type Config
- func (c *Config) Exist(path string) bool
- func (c *Config) GetBool(path string) bool
- func (c *Config) GetByScan(path string, objptr interface{}) (err error)
- func (c *Config) GetFloat32(path string) float32
- func (c *Config) GetFloat64(path string) float64
- func (c *Config) GetInt(path string) int
- func (c *Config) GetString(path string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigFilePath string
View Source
var SEP = "/"
var SEP = "."
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
配置
var Conf *Config
func NewConfiguration ¶
func (*Config) GetFloat32 ¶
func (*Config) GetFloat64 ¶
Click to show internal directories.
Click to hide internal directories.