package
0.0.0-20240522154920-a3cb3ec17914
Repository: https://github.com/xiaohubai/go-grpc-layout.git
Documentation: pkg.go.dev
# Functions
Date returns current date in string like "2006-01-02".
Datetime returns current datetime in string like "2006-01-02 15:04:05".
ISO8601 returns current datetime in ISO8601 format like "2006-01-02T15:04:05-07:00".
No description provided by the author
Md5 加密.
RandInt 生成随机数.
RandString 生成随机字符串 值可能为: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ 0123456789.
RFC822 returns current datetime in RFC822 format like "Mon, 02 Jan 06 15:04 MST".
SetTimeZone 设置地区时间 eg: Asia/Shanghai.
Sha3 sha3-256加密.
the time in string as time like "2022-01-02 18:04:05".
Timestamp returns the timestamp in seconds(秒).
TimestampMicro returns the timestamp in microseconds(微秒).
TimestampMilli returns the timestamp in milliseconds(毫秒).
the timestamp in milliseconds as string.
TimestampNano returns the timestamp in nanoseconds(纳秒).
the timestamp in seconds as string.
the t in time as string like "2022-01-02 18:04:05".