tutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrintTrace = false

PrintTrace 是否打印内部日志

Functions

func Log

func Log(msg string)

Log 普通输出

func LogFatal

func LogFatal(msg string)

LogFatal 严重错误

func LogTrace

func LogTrace(msg string)

LogTrace 打印内部日志

func LogWarn

func LogWarn(msg string)

LogWarn 非严重错误

func MD5

func MD5(data []byte) string

MD5 计算MD5

func RandString

func RandString(n int) string

RandString 生成长度为N的随机字符串

func TimeToDateTimeString

func TimeToDateTimeString(t *time.Time) string

TimeToDateTimeString 将Time转换成MysqlDateTime认识的字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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