Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hashids ¶
type Hashids struct { HashID *hashids.HashID HashIDData *hashids.HashIDData // contains filtered or unexported fields }
Hashids 封装hashids方法
func New ¶
New 创建Hashids对象 salt可以使用用户创建记录时的用户唯一身份标识+当前时间戳的字符串作为值 minLength指定转换后的最小长度,随着数字ID的增大长度可能会变长
Click to show internal directories.
Click to hide internal directories.