Versions in this module Expand all Collapse all v0 v0.0.4 Mar 20, 2022 v0.0.3 Mar 20, 2022 v0.0.2 Mar 20, 2022 v0.0.1 Mar 18, 2022 Changes in this version + const Size + const V1 + 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 + type Bytes []byte + func (b Bytes) GetUUID() UUID + func (b Bytes) String() string + type Gen struct + func NewGen() *Gen + func NewGenWithHWAF(hwaf HWAddrFunc) *Gen + func NewGenWithReader(r io.Reader) *Gen + func (g *Gen) NewV1() (UUID, error) + func (g *Gen) NewV3(ns UUID, name string) UUID + func (g *Gen) NewV4() (UUID, error) + func (g *Gen) NewV5(ns UUID, name string) UUID + type Generator interface + NewV1 func() (UUID, error) + NewV3 func(ns UUID, name string) UUID + NewV4 func() (UUID, error) + NewV5 func(ns UUID, name string) UUID + var DefaultGenerator Generator = NewGen() + type HWAddrFunc func() (net.HardwareAddr, error) + type NullUUID struct + UUID UUID + Valid bool + func (u *NullUUID) Scan(src interface{}) error + func (u *NullUUID) UnmarshalJSON(b []byte) error + func (u NullUUID) MarshalJSON() ([]byte, error) + func (u NullUUID) Value() (driver.Value, error) + type ShortStringer UUID + func (s ShortStringer) String() string + type Timestamp uint64 + func TimestampFromV1(u UUID) (Timestamp, error) + func (t Timestamp) Time() (time.Time, error) + type UUID [Size]byte + func FastMakeV4() UUID + func FromBytes(input []byte) (UUID, error) + func FromBytesOrNil(input []byte) UUID + func FromString(input string) (UUID, error) + func FromStringOrNil(input string) UUID + func FromUint128(input uint128.Uint128) UUID + func MakeV4() UUID + func Must(u UUID, err error) UUID + func NewPopulatedUUID(r interface{ ... }) *UUID + func NewV1() (UUID, error) + func NewV3(ns UUID, name string) UUID + func NewV4() (UUID, error) + func NewV5(ns UUID, name string) UUID + func (u *UUID) DeterministicV4(i, n uint64) + func (u *UUID) GetBytesMut() []byte + func (u *UUID) Scan(src interface{}) error + func (u *UUID) SetVariant(v byte) + func (u *UUID) SetVersion(v byte) + func (u *UUID) Unmarshal(data []byte) error + func (u *UUID) UnmarshalBinary(data []byte) error + func (u *UUID) UnmarshalJSON(data []byte) error + func (u *UUID) UnmarshalText(text []byte) error + func (u UUID) Equal(t UUID) bool + func (u UUID) GetBytes() []byte + func (u UUID) MarshalBinary() ([]byte, error) + func (u UUID) MarshalJSON() ([]byte, error) + func (u UUID) MarshalText() ([]byte, error) + func (u UUID) MarshalTo(data []byte) (int, error) + func (u UUID) Short() string + func (u UUID) Size() int + func (u UUID) String() string + func (u UUID) StringBytes(buf []byte) + func (u UUID) ToUint128() uint128.Uint128 + func (u UUID) Value() (driver.Value, error) + func (u UUID) Variant() byte + func (u UUID) Version() byte