Documentation ¶ Index ¶ Variables func If(b bool, t, f interface{}) interface{} func IsDebug() bool func IsNone(val interface{}) bool func IsZero(val reflect.Value) bool func WithClose(closer io.Closer, fn func()) func WithLock(mu *sync.Mutex, fn func()) Constants ¶ This section is empty. Variables ¶ View Source var Caller = &_Caller{} Caller init View Source var ErrNoFuncCaller = errors.New("pkg: no func caller error") ErrNoFuncCaller not found error Functions ¶ func If ¶ func If(b bool, t, f interface{}) interface{} If exported func IsDebug ¶ added in v0.1.27 func IsDebug() bool IsDebug 是否是debug模式 func IsNone ¶ func IsNone(val interface{}) bool IsNone exported func IsZero ¶ func IsZero(val reflect.Value) bool IsZero exported func WithClose ¶ added in v0.1.10 func WithClose(closer io.Closer, fn func()) func WithLock ¶ added in v0.1.10 func WithLock(mu *sync.Mutex, fn func()) Types ¶ This section is empty. Source Files ¶ View all Source files caller.go utils.go Directories ¶ Show internal Expand all Path Synopsis bitsetutil btcutil bytesutil captcha cast check colorutil daemonutil emailutil encoding baseutil cryptoutil gziputil hashutil ziputil ethutil facedet fileutil gopsutil goutil httputil imageutil injectutil mapsetutil markdown netutil osutil qrcode randutil runeutil schedule slugify sortutil sshutil structutil strutil timeutil uuidutil weixin Click to show internal directories. Click to hide internal directories.