Documentation ¶ Index ¶ func GAppName() string func GBuildVersion() string func GConfigs() cfg_provider.ConfigProvider func GRunEnv() string func GWorkDir() string func InitEnv(appName, workDir string, args ...string) error func NewLoggerWithCTX(module string, args ...context.Context) log_provider.Logger Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GAppName ¶ func GAppName() string GAppName 运行服务名 func GBuildVersion ¶ func GBuildVersion() string GBuildVersion 构建版本 func GConfigs ¶ added in v0.1.2 func GConfigs() cfg_provider.ConfigProvider GConfigs 全局配置 func GRunEnv ¶ func GRunEnv() string func GWorkDir ¶ added in v0.2.1 func GWorkDir() string func InitEnv ¶ added in v0.2.6 func InitEnv(appName, workDir string, args ...string) error InitEnv 初始化环境 func NewLoggerWithCTX ¶ func NewLoggerWithCTX(module string, args ...context.Context) log_provider.Logger NewLoggerWithCTX 日志收集器 Types ¶ This section is empty. Source Files ¶ View all Source files common.go core.go Directories ¶ Show internal Expand all Path Synopsis cfg_provider env log_provider runtime Click to show internal directories. Click to hide internal directories.