utils

package
v5.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 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 float64, 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 GetFloatValuePtr

func GetFloatValuePtr(arg *float64) string

func GetGID

func GetGID() int64

func GetIntValuePtr

func GetIntValuePtr(arg *int) string

func GetStringValuePtr

func GetStringValuePtr(arg *string) string

func GetTimeValuePtr

func GetTimeValuePtr(arg *time.Time) string

func GetValue

func GetValue(arg interface{}, types reflect.Type) string

func GoroutineID

func GoroutineID() int64

func LowerFieldFirstName

func LowerFieldFirstName(fieldStr string) string

首字母转小写

func NewError

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

func PrintTimeString

func PrintTimeString(info string, start time.Time, end time.Time, duration time.Duration) string

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