Documentation ¶
Index ¶
- func DevMode(field string)
- func GetBool(name string) bool
- func GetInt(name string) int
- func GetString(name string) string
- func GetStruct(name string, v interface{})
- func ProjectPath() (path string)
- func Unmarshal(v interface{})
- type Config
- func (c *Config) Get(name string) (value interface{})
- func (c *Config) GetBool(name string) (value bool)
- func (c *Config) GetInt(name string) (value int)
- func (c *Config) GetString(name string) (value string)
- func (c *Config) GetStruct(name string, s interface{})
- func (c *Config) Unmarshal(s interface{})
- type Yaml
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectPath ¶ added in v1.30.3
func ProjectPath() (path string)
ProjectPath return project path
Types ¶
type Config ¶
type Config struct { // different devMode yaml data YamlS []*Yaml // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.