utils

package
v6.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PackageName = "com.github.zhuxiujia.GoMybatis"

Variables

View Source
var Float64Type = reflect.TypeOf(c_FLOAT64_DEFAULT)

Functions

func CountMethodTps

func CountMethodTps(total int, now time.Time, info string)

调用次方法 必须加上 defer 关键字!

func CountMethodUseTime

func CountMethodUseTime(now time.Time, info string, duration time.Duration)

调用次方法 必须加上 defer 关键字!

func CreateUUID

func CreateUUID() string

func DurationToString

func DurationToString(duration time.Duration) string

func FixTestExpressionSymbol

func FixTestExpressionSymbol(bytes *[]byte)

补丁:临时解决test表达式,包含<符号时etree 无法解析的问题

func GetGID

func GetGID() int64

func GoroutineID

func GoroutineID() int64

func LowerFieldFirstName

func LowerFieldFirstName(fieldStr string) string

首字母转小写

func NewError

func NewError(StructName string, args ...interface{}) error

func SprintArray

func SprintArray(array_or_slice []interface{}) string

format array [1,2,3,""] to '[1,2,3,]'

func UpperFieldFirstName

func UpperFieldFirstName(fieldStr string) string

首字母转大写

Types

This section is empty.

Jump to

Keyboard shortcuts

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