Documentation ¶
Overview ¶
Package uuids provides functions for generating and handling UUIDs as defined by RFC 4122.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DNS = UUID{0x6b, 0xa7, 0xb8, 0x10, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8} URL = UUID{0x6b, 0xa7, 0xb8, 0x11, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8} OID = UUID{0x6b, 0xa7, 0xb8, 0x12, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8} X500 = UUID{0x6b, 0xa7, 0xb8, 0x14, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8} )
Namespaces
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID [16]byte
A UUID is a universally unique identifier: a 128-bit value.
func New4 ¶
New4 generates a new UUID (version 4) using a provided source of random bytes. If r is nil, crypto/rand.Reader is used.
func (UUID) AppendHex ¶
AppendHex appends the dash-separated hex representation of u to b and returns the extended buffer.
Click to show internal directories.
Click to hide internal directories.