Documentation ¶
Index ¶
- func AddQuotes(data interface{}, quotes ...string) string
- func EmptyThen(v1 interface{}, v2 interface{}) interface{}
- func IfThen(expr interface{}, trueV, falseV interface{}) interface{}
- func MakeRandomInt(num int) int
- func WithLockContext(fn func())
- func WithRunTimeContext(closer func() (result interface{}, error error), ...) (result interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfThen ¶
func IfThen(expr interface{}, trueV, falseV interface{}) interface{}
如果expr成立,则返回trueV, 否则返回falseV
func MakeRandomInt ¶
func WithLockContext ¶
func WithLockContext(fn func())
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.