Documentation ¶
Index ¶
- Constants
- func HideCard(card string) string
- func HideMobile(mobile string) string
- func HideName(s string) string
- func IdsGroup(ids []int64) string
- func IdsGroupInt(ids []int) string
- func IsModeDebug(mode string) bool
- func IsModeDev(mode string) bool
- func IsModeProd(mode string) bool
- func ParseIdsGroup(s string) []int64
- func ParseIdsGroupInt(s string) []int
- func RemovePidFile(dir ...string) error
- func WritePidFile(dir ...string) error
Constants ¶
View Source
const ( ModeDev = "dev" // 开发模式 ModeDebug = "debug" // 测试模式 ModeProd = "prod" // 生产模式 )
运行工作模式
Variables ¶
This section is empty.
Functions ¶
func ParseIdsGroupInt ¶ added in v0.1.9
ParseIdsGroupInt 解析以','分隔的批量id
func RemovePidFile ¶
RemovePidFile 删除默认写到执行文件目录下,并以执行文件名.pid命名的文件. 可选指定相应目录
func WritePidFile ¶
WritePidFile 写pid到文件中,默认写到执行文件目录下,并以执行文件名.pid命名 可选指定相应目录
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.