seq

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextID

func NextID() string

NextID 返回十进制字符串形式的下一个 Snowflake ID。 机器编号默认 56565,可通过 SONYFLAKE_MACHINE_ID 覆盖,唯一性范围为同一时间仅运行一个生成器实例。 生成器耗尽可用时间范围时会触发 panic。

func UUID

func UUID() string

UUID 返回随机生成的 UUID v7 字符串。

func UUIDShort

func UUIDShort() string

UUIDShort 返回移除连字符后的 UUID v7 字符串。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL