Versions in this module Expand all Collapse all v0 v0.4.0 Jun 18, 2018 Changes in this version + const DomainGroup + const DomainOrg + const DomainPerson + const Size + const V1 + const V2 + const V3 + const V4 + const V5 + const VariantFuture + const VariantMicrosoft + const VariantNCS + const VariantRFC4122 + var NamespaceDNS = Must(FromString("6ba7b810-9dad-11d1-80b4-00c04fd430c8")) + var NamespaceOID = Must(FromString("6ba7b812-9dad-11d1-80b4-00c04fd430c8")) + var NamespaceURL = Must(FromString("6ba7b811-9dad-11d1-80b4-00c04fd430c8")) + var NamespaceX500 = Must(FromString("6ba7b814-9dad-11d1-80b4-00c04fd430c8")) + var Nil = UUID + func Equal(u1 UUID, u2 UUID) bool + type Generator interface + NewV1 func() (UUID, error) + NewV2 func(domain byte) (UUID, error) + NewV3 func(ns UUID, name string) UUID + NewV4 func() (UUID, error) + NewV5 func(ns UUID, name string) UUID + type UUID [Size]byte + func FromBytes(input []byte) (u UUID, err error) + func FromBytesOrNil(input []byte) UUID + func FromString(input string) (u UUID, err error) + func FromStringOrNil(input string) UUID + func Must(u UUID, err error) UUID + func NewV1() (UUID, error) + func NewV2(domain byte) (UUID, error) + func NewV3(ns UUID, name string) UUID + func NewV4() (UUID, error) + func NewV5(ns UUID, name string) UUID + func (u *UUID) SetVariant(v byte) + func (u *UUID) SetVersion(v byte) + func (u *UUID) UnmarshalBinary(data []byte) (err error) + func (u *UUID) UnmarshalText(text []byte) (err error) + func (u UUID) Bytes() []byte + func (u UUID) MarshalBinary() (data []byte, err error) + func (u UUID) MarshalText() (text []byte, err error) + func (u UUID) String() string + func (u UUID) Variant() byte + func (u UUID) Version() byte