Generates UUID-format strings using purely high quality random bytes
Switch branches/tags
Nothing to show
Clone or download
nodakai and jefferai Refactor uuid.go (#9)
Introduce a const uuidLen = 16 to replace some of the magic numbers.

Prefer a rune literal '-' over a temp byte slice []byte("-").

Let Printf format byte slices with %x, assuming the input slices have correct lengths (if they don't, that's a grave bug)
Latest commit 4f571af Nov 28, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml Add diverged PRs back in Mar 11, 2016
LICENSE Initial commit Oct 12, 2015 Update Feb 28, 2018
go.mod Add go.mod Aug 28, 2018
uuid.go Refactor uuid.go (#9) Nov 28, 2018
uuid_test.go Add diverged PRs back in Mar 11, 2016

uuid Build Status

Generates UUID-format strings using high quality, purely random bytes. It is not intended to be RFC compliant, merely to use a well-understood string representation of a 128-bit value. It can also parse UUID-format strings into their component bytes.


The full documentation is available on Godoc.