This package is a wrapper for most common used UUID package: https://github.com/google/uuid
It supports the following UUID versions:
- Version 1, based on timestamp and MAC address (RFC-4122)
- Version 2, based on timestamp, MAC address and POSIX UID/GID (DCE 1.1)
- Version 3, based on MD5 hashing of a named value (RFC-4122)
- Version 4, based on random numbers (RFC-4122)
- Version 5, based on SHA-1 hashing of a named value (RFC-4122)
go get -u -v github.com/gogf/guuid@master
tip: when the guuid
version is greater than v1.0.0
, the dependent GoFrame
version is v2.1.1
The guuid is open-sourced software licensed under the MIT license.