https://github.com/gogf/guuid
Package guuid generates and inspects UUIDs.
https://github.com/gogf/guuid
gf goframe uuid
Last synced: 9 months ago
JSON representation
Package guuid generates and inspects UUIDs.
- Host: GitHub
- URL: https://github.com/gogf/guuid
- Owner: gogf
- License: mit
- Created: 2020-05-16T06:54:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-02T09:50:43.000Z (over 3 years ago)
- Last Synced: 2024-06-19T02:58:07.613Z (over 1 year ago)
- Topics: gf, goframe, uuid
- Language: Go
- Homepage: https://goframe.org
- Size: 13.7 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# guuid
[](https://godoc.org/github.com/gogf/guuid)
[](https://github.com/gogf/guuid)
This package is a wrapper for most common used UUID package:
https://github.com/google/uuid
It supports the following UUID versions:
1. Version 1, based on timestamp and MAC address (RFC-4122)
2. Version 2, based on timestamp, MAC address and POSIX UID/GID (DCE 1.1)
3. Version 3, based on MD5 hashing of a named value (RFC-4122)
4. Version 4, based on random numbers (RFC-4122)
5. Version 5, based on SHA-1 hashing of a named value (RFC-4122)
## Installation
```shell
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`
## License
The guuid is open-sourced software licensed under the [MIT license](./LICENSE).