NUIDGo 唯一標識生成庫
NUID 是一個高性能的唯一標識生成庫,使用 GO 語言開發(fā)。
示例代碼:
// Utilize the global locked instance nuid := nuid.Next() // Create an instance, these are not locked. n := nuid.New() nuid = n.Next() // Generate a new crypto/rand seeded prefix. // Generally not needed, happens automatically. n.RandomizePrefix()
評論
圖片
表情
