Documentation ¶
Overview ¶
Package u64 是 uint64类库.
函数: Byte2, Uint64, ID, Rand. 对象: U64.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ID ¶ added in v1.0.56
func ID() uint64
ID 获取ID.
Example ¶
package main import ( "fmt" "gitee.com/xuender/oils/u64" ) func main() { fmt.Println(u64.ID()) fmt.Println(u64.ID()) }
Output:
func NewID ¶
NewID 新建ID. num 4位 16个. 起始日期 2021-10-31 日. 合计53位,js中使用不会出错.
Example ¶
package main import ( "fmt" "gitee.com/xuender/oils/u64" ) func main() { fmt.Println(u64.NewID(3)) id := u64.ID() fmt.Println(id) fmt.Println(u64.DecodeID(id)) }
Output:
Types ¶
Click to show internal directories.
Click to hide internal directories.