基于 RFC 4122 和 DCE 1.1: Authentication and Security Services 的 UUID Go 包。
基于 RFC 4122 和 DCE 1.1: Authentication and Security Services 的 UUID Go 包。
uuid 包用于生成和检查基于 RFC 4122 和 DCE 1.1: Authentication and Security Services 的 UUID。
此包基于 GitHub.com/pborman/uuid 包(之前名为 code.google.com/p/go-uuid)。它与这些早期包的不同之处在于,UUID 是一个 16 字节的数组而不是字节切片。这一变化带来的一个损失是无法表示无效的 UUID(与 NIL UUID 相对)。
go get github.com/google/uuid无需安装此包,即可通过 GoDoc 网站在线查看该包完整的 go doc 风格文档:
https://pkg.go.dev/github.com/google/uuid
暂无开放 Issues,或尚未同步最近议题。