Documentation
¶
Index ¶
- Variables
- func Get(key string, args ...interface{}) string
- func GetBool(key string) bool
- func GetExt(key string, args ...interface{}) string
- func GetExtBool(key string) bool
- func GetExtFloat64(key string) float64
- func GetExtInt(key string) int
- func GetFloat(key string) float64
- func GetInt(key string) int
- func LoadConfigs(args ...string)
- func LoadExtConfigs(args ...string)
- func LoadPlatformConfigs(db *gorm.DB)
- func PrintConfigs()
Constants ¶
This section is empty.
Variables ¶
View Source
var Ext *ini.File
Ext 扩展配置信息
View Source
var Ini *ini.File
Ini 配置信息
Functions ¶
func Get ¶
Get 获取配置项信息, 注意: 此方法必须在 LoadConfigs() 方法之后执行, 否则将无法获取配置信息 key: 配置项名称 顶级配置项获取: config.Get("app_name") 二级配置项获取: config.Get("database.name")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.