Documentation
¶
Index ¶
- func GetInt64D(key string, defaultVal int64) int64
- func GetInt64E(key string) (int64, error)
- func GetInt64M(key string) int64
- func GetStringD(key string, defaultVal string) string
- func GetStringE(key string) (string, error)
- func GetStringM(key string) string
- func InitConfig(confPath string) (err error)
- func MustGetConfig() config.Config
- func MustInitConfig(confFolder string)
- func Scan(v any) (err error)
- func SetDefaults(ptr any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStringD ¶
--------------------------------------------------
func GetStringE ¶
func GetStringM ¶
func InitConfig ¶
func MustGetConfig ¶
func MustInitConfig ¶
func MustInitConfig(confFolder string)
func SetDefaults ¶
-------------------------------------------------- 支持代码配置默认值,支持字符串/整形/浮点型/布尔型 通过Tag如`default:"10"`来设置默认值,值都使用字符串来填写
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.