pkg

package
v0.2.25 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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