Goid icon indicating copy to clipboard operation
Goid copied to clipboard

A UUIDv4 generation package written in go

Goid

A Go package to generate V4 UUIDs

Go Report Card cover.run Go Docs

Documentation

The API docs can be viewed here or generated with godoc.

Usage

An example of generating a v4 UUID and outputting it

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