Documentation ¶
Index ¶
Constants ¶
View Source
const VERSION = "v0.0.32"
Variables ¶
This section is empty.
Functions ¶
func GTSysUseSignalWaitAppExit ¶
func GTSysUseSignalWaitAppExit(exitHandleFunc func(sigInfo *GTAppSignalInfo))
GTSysUseSignalWaitAppExit 处理程序信号,并且做一些操作,比如:保存状态、保存配置文件
func SetupGTBox ¶ added in v0.0.8
func SetupGTBox(projectName string, debugMode bool, logLevel logrus.Level, logMaxSaveDays int64, logSaveType gtbox_log.GTLogSaveType)
SetupGTBox 必须--YES 必须使用此方法初始化工具库,未使用此方法初始化,无法使用完整功能,亦存在兼容性问题 debugToCut App如果是Debug模式默认不开启日志切片,方便IDE调试 projectName--项目名称, logLevel--日志等级, logMaxSaveTime--默认365天, logSaveType--日志分片格式,默认按天分片,可选按小时分片
Types ¶
type GTAppSignalInfo ¶
Click to show internal directories.
Click to hide internal directories.