package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Nov 9, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package uuid 提供 RFC 9562 v4 UUID 的生成,复刻官方 util/crypto 的 randomUUID:
从密码学随机源取 16 字节,固定 version/variant 位后格式化为 8-4-4-4-12。
MustV4 生成 UUID,失败时 panic(仅用于不会失败的初始化场景)。
NewV4 生成一个随机 v4 UUID 字符串。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.