Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakenvac/Goid
A UUIDv4 generation package written in go
https://github.com/jakenvac/Goid
Last synced: about 2 months ago
JSON representation
A UUIDv4 generation package written in go
- Host: GitHub
- URL: https://github.com/jakenvac/Goid
- Owner: jakenvac
- License: mit
- Created: 2017-05-19T10:40:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T15:50:01.000Z (almost 6 years ago)
- Last Synced: 2024-04-15T01:06:29.493Z (9 months ago)
- Language: Go
- Homepage:
- Size: 2.16 MB
- Stars: 40
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-go - Goid - A UUIDv4 generation package written in go - ★ 13 (Miscellaneous)
README
# Goid
A Go package to generate V4 UUIDs
[![Go Report Card](https://goreportcard.com/badge/github.com/JakeHL/goid)](https://goreportcard.com/report/github.com/JakeHL/goid)
[![cover.run](https://cover.run/go/github.com/jakehl/goid.svg?style=flat&tag=golang-1.10)](https://cover.run/go?tag=golang-1.10&repo=github.com%2Fjakehl%2Fgoid)
[![Go Docs](https://godoc.org/github.com/jakehl/goid?status.svg)](https://godoc.org/github.com/jakehl/goid)## Documentation
The API docs can be viewed [here](https://godoc.org/github.com/JakeHL/goid) or generated with godoc.
### Usage
An example of generating a v4 UUID and outputting it
```go
import (
"fmt"
"github.com/jakehl/goid"
)func main() {
v4UUID := goid.NewV4UUID()
fmt.Println(v4UUID)
}
```### Todo
- [ ] Add optimised bulk UUID generation
### References
The following sources were referenced during the development of this project
- http://www.cryptosys.net/pki/uuid-rfc4122.html
- http://www.ietf.org/rfc/rfc4122.txt
- https://en.wikipedia.org/wiki/Universally_unique_identifier