habit

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeDev   = "dev"   // 开发模式
	ModeDebug = "debug" // 测试模式
	ModeProd  = "prod"  // 生产模式
)

运行工作模式

Variables

This section is empty.

Functions

func HideCard

func HideCard(card string) string

HideCard 隐藏证件号码.

func HideMobile

func HideMobile(mobile string) string

HideMobile 隐藏手机号.

func HideName

func HideName(s string) string

HideName 隐藏真实名称(如姓名、账号、公司等).

func IdsGroup

func IdsGroup(ids []int64) string

IdsGroup 以','分隔的批量id为字符串

func IdsGroupInt added in v0.1.9

func IdsGroupInt(ids []int) string

IdsGroupInt 以','分隔的批量id为字符串

func IsModeDebug

func IsModeDebug(mode string) bool

IsModeDebug 是否是测试模式

func IsModeDev

func IsModeDev(mode string) bool

IsModeDev 是否是开发模式

func IsModeProd

func IsModeProd(mode string) bool

IsModeProd 是否是生产模式

func ParseIdsGroup

func ParseIdsGroup(s string) []int64

ParseIdsGroup 解析以','分隔的批量id

func ParseIdsGroupInt added in v0.1.9

func ParseIdsGroupInt(s string) []int

ParseIdsGroupInt 解析以','分隔的批量id

func RemovePidFile

func RemovePidFile(dir ...string) error

RemovePidFile 删除默认写到执行文件目录下,并以执行文件名.pid命名的文件. 可选指定相应目录

func WritePidFile

func WritePidFile(dir ...string) error

WritePidFile 写pid到文件中,默认写到执行文件目录下,并以执行文件名.pid命名 可选指定相应目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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