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: 23 days ago
JSON representation

A UUIDv4 generation package written in go

Lists

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