Skip to content

Leverage github.com/google/uuid

Compare
Choose a tag to compare
@pborman pborman released this 06 Sep 18:32
· 7 commits to master since this release
adf5a74

This release should not have visible changes. This package now leverages the google/uuid package for:

All time/clock support
All node (network interface) support
Parsing text into UUIDs
Creation of version 1 and version 4 UUIDs

The choice of this package vs the google/uuid package is largely dependent on your use case. If you want to use UUIDs as keys, used the google/uuid version (a UUID is an array). Use this package for compatibility, needing to distinguish between non-set UUID and the zero UUID, prefer byte slices over arrays.