dtool

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenDayTimeStamp

func GenDayTimeStamp() string

GenDayTimeStamp 生成当前时间戳,精确到天 格式为2006-01-02ns

func GenMicrosecondTimeStamp

func GenMicrosecondTimeStamp() string

GenMicrosecondTimeStamp 生成当前时间戳,精确到微秒 格式为2006-01-02 15:04:05.000000

func GenMillisecondTimeStamp

func GenMillisecondTimeStamp() string

GenMillisecondTimeStamp 生成当前时间戳,精确到毫秒 格式为2006-01-02 15:04:05.000

func GenMinuteTimeStamp

func GenMinuteTimeStamp() string

GenMinuteTimeStamp 生成当前时间戳,精确到分 格式为2006-01-02 15:04

func GenSecondTimeStamp

func GenSecondTimeStamp() string

GenSecondTimeStamp 生成当前时间戳,精确到秒 格式为2006-01-02 15:04:05

func GenUUID

func GenUUID() string

GenUUID 生成唯一识别码 格式为6b626e40-12a5-4a1a-87c2-b3a7f904a93c

func GenVerificationCode

func GenVerificationCode(size int) string

func GetFreePort

func GetFreePort() string

func MustSliceStringToInt32

func MustSliceStringToInt32(in []string) []int32

func Ok

func Ok() bool

func ParseAllTime

func ParseAllTime(stamp string) (time.Time, bool)

func ParseDayTime

func ParseDayTime(stamp string) (time.Time, bool)

func ParseHourTime

func ParseHourTime(stamp string) (time.Time, bool)

func ParseMicrosecondTime

func ParseMicrosecondTime(stamp string) (time.Time, bool)

func ParseMillisecondTime

func ParseMillisecondTime(stamp string) (time.Time, bool)

func ParseMinuteTime

func ParseMinuteTime(stamp string) (time.Time, bool)

func ParseMonthTime

func ParseMonthTime(stamp string) (time.Time, bool)

func ParseSecondTime

func ParseSecondTime(stamp string) (time.Time, bool)

func ParseYearTime

func ParseYearTime(stamp string) (time.Time, bool)

func RandomString

func RandomString() string

RandomString 生成随机数字符串

func Sleep

func Sleep(seconds float32)

Sleep sleep一定时间 单位为秒

func Startpprof

func Startpprof(port string)

func ToMinuteTimeStamp

func ToMinuteTimeStamp(t time.Time) string

func ToString

func ToString(input ...interface{}) string

func Wait

func Wait()

Wait 提供阻塞的循环,用于保持线程

Types

This section is empty.

Jump to

Keyboard shortcuts

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