modulepackage
0.0.0-20131221200532-179d4d0c4d8d
Repository: https://github.com/nu7hatch/gouuid.git
Documentation: pkg.go.dev
# README
Pure Go UUID implementation
This package provides immutable UUID structs and the functions NewV3, NewV4, NewV5 and Parse() for generating versions 3, 4 and 5 UUIDs as specified in RFC 4122.
Installation
Use the go
tool:
$ go get github.com/nu7hatch/gouuid
Usage
See documentation and examples for more information.
Copyright
Copyright (C) 2011 by Krzysztof Kowalik [email protected]. See COPYING file for details.
# Functions
Generate a UUID based on the MD5 hash of a namespace identifier and a name.
Generate a random UUID.
Generate a UUID based on the SHA-1 hash of a namespace identifier and a name.
Parse creates a UUID object from given bytes slice.
ParseHex creates a UUID object from given hex string representation.
# Constants
The UUID reserved variants.
The UUID reserved variants.
The UUID reserved variants.
The UUID reserved variants.
# Variables
The following standard UUIDs are for use with NewV3() or NewV5().
The following standard UUIDs are for use with NewV3() or NewV5().
The following standard UUIDs are for use with NewV3() or NewV5().
The following standard UUIDs are for use with NewV3() or NewV5().
# Type aliases
A UUID representation compliant with specification in RFC 4122 document.