pkg

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 0 Imported by: 1

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.

Jump to

Keyboard shortcuts

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