Versions in this module Expand all Collapse all v1 v1.0.1 Sep 14, 2022 Changes in this version + const V2 v1.0.0 Sep 14, 2022 Changes in this version + const DomainGroup + const DomainOrg + const DomainPerson + const Size + const V1 + const V3 + const V4 + const V5 + const V6 + const V7 + 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 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 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 Timestamp uint64 + func TimestampFromV1(u UUID) (Timestamp, error) + func TimestampFromV6(u UUID) (Timestamp, error) + func (t Timestamp) Time() (time.Time, error) + 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) Scan(src interface{}) error + 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) Format(f fmt.State, c rune) + func (u UUID) IsNil() bool + func (u UUID) MarshalBinary() (data []byte, err error) + func (u UUID) MarshalText() (text []byte, err error) + func (u UUID) String() string + func (u UUID) Value() (driver.Value, error) + func (u UUID) Variant() byte + func (u UUID) Version() byte