gconf

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var V = viper.New()

Functions

func InitConfig

func InitConfig() error

InitConfig 初始化配置信息

func LoadErrMsg

func LoadErrMsg(code uint32) string

LoadErrMsg 根据code加载提示信息

func OnConfigCharge

func OnConfigCharge()

OnConfigCharge 注册配置改变后的处理

func RegisterConfigCharge

func RegisterConfigCharge(f ...func())

RegisterConfigCharge 可以在程序启动前注册多个配置变化函数

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL