xdbUtil

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddQuotes

func AddQuotes(data interface{}, quotes ...string) string

func EmptyThen

func EmptyThen(v1 interface{}, v2 interface{}) interface{}

如果v1为空,则返回v2

func IfThen

func IfThen(expr interface{}, trueV, falseV interface{}) interface{}

如果expr成立,则返回trueV, 否则返回falseV

func MakeRandomInt

func MakeRandomInt(num int) int

func WithLockContext

func WithLockContext(fn func())

func WithRunTimeContext

func WithRunTimeContext(closer func() (result interface{}, error error), callback func(duration time.Duration, err error)) (result interface{}, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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