A Go package to generate V4 UUIDs
The API docs can be viewed here or generated with godoc.
An example of generating a v4 UUID and outputting it
import (
"fmt"
"github.com/jakehl/goid"
)
func main() {
v4UUID := goid.NewV4UUID()
fmt.Println(v4UUID)
}
- Add optimised bulk UUID generation
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