Categorygithub.com/ginvcom/util
modulepackage
1.1.1
Repository: https://github.com/ginvcom/util.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
Ceil 进一法.
Date 获取日期字符串的当地Unix时间戳 layout s的时间格式.
Floor 舍弃法.
UUID 获取uuid.
LimitOffset 用于获取sql分页的limit和offset.
No description provided by the author
MD5 字符串md5加密.
MobileEncode 手机号加星星, 显示前3位开头和4位尾号.
No description provided by the author
ParseTimeByUUID 根据uuid, 获取生成该uuid的时间.
Random 随机生成指定范围的数.
RandomNumber 随机生成一个数.
RandomStr 随机指定长度的字符串,不含大写.
RandomString 生成随机字符串.
No description provided by the author
No description provided by the author
Round 四舍五入 decimals 精确到几位小数.
RSA RSA签名.
RSACheck RSA验签.
SHA256 加密.
No description provided by the author
No description provided by the author
WithContext sets ctx to lang, for keeping tracing information.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

A Lang represents a lang.

# Type aliases

No description provided by the author