Documentation ¶
Overview ¶
Package pkg 内部需要使用的常量
Index ¶
Constants ¶
View Source
const ( FushinEnableInitLog = "FushinEnableInitLog" FushinEnableDebugLog = "FushinEnableDebugLog" )
View Source
const ( DEV = iota PROD NoColor FATAL )
View Source
const (
Fushin = "Fushin"
)
Variables ¶
View Source
var ( FushinMode = "development" FushinLogColor = true FushinPanic = false )
Functions ¶
func SetFushinMode ¶ added in v1.0.1
func SetFushinMode(mode int)
SetFushinMode 设置fushin的全局变量 mode: dev: 0 prod: 1 nocolor: 2 禁止彩色输出 fatal: 3 在出错时panic退出
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.