package
Version:
v1.5.8
Opens a new window with list of versions in this module.
Published: Sep 26, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
NextID 返回十进制字符串形式的下一个 Snowflake ID。
机器编号默认 56565,可通过 SONYFLAKE_MACHINE_ID 覆盖,唯一性范围为同一时间仅运行一个生成器实例。
生成器耗尽可用时间范围时会触发 panic。
UUID 返回随机生成的 UUID v7 字符串。
UUIDShort 返回移除连字符后的 UUID v7 字符串。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.