Versions in this module Expand all Collapse all v2 v2.0.2 Mar 11, 2024 v2.0.1 Dec 8, 2023 v2.0.0 Dec 8, 2023 Changes in this version + var Nil = ID + func Must[T any](r T, err error) T + type AnyMatcher struct + func MatchAny(tag byte) AnyMatcher + func (a AnyMatcher) Match(v interface{}) bool + type ID [size]byte + func FromBytes(input []byte) (ID, error) + func FromString(s string) (ID, error) + func New() (ID, error) + func NewRandom() (ID, error) + func NewRandomTagged(tag byte) (ID, error) + func NewTagged(tag byte) (ID, error) + func Parse(s string) (ID, error) + func ParseWithRequire(s string, reqs ...Requirement) (ID, error) + func (r *ID) ClearTag() *ID + func (r *ID) Scan(src interface{}) error + func (r *ID) SetTag(tag byte) *ID + func (r *ID) SetTime(ts time.Time) error + func (r *ID) UnmarshalBinary(data []byte) error + func (r *ID) UnmarshalJSON(b []byte) error + func (r *ID) UnmarshalText(b []byte) error + func (r ID) Bytes() []byte + func (r ID) Equal(other ID) bool + func (r ID) Format(f fmt.State, c rune) + func (r ID) HasTag(tag byte) bool + func (r ID) HasType(t Type) bool + func (r ID) IsNil() bool + func (r ID) IsTagged() bool + func (r ID) MarshalBinary() ([]byte, error) + func (r ID) MarshalJSON() ([]byte, error) + func (r ID) MarshalText() ([]byte, error) + func (r ID) String() string + func (r ID) Tag() byte + func (r ID) Time() time.Time + func (r ID) ToBase32String() string + func (r ID) ToBase64String() string + func (r ID) ToHexString() string + func (r ID) ToString() string + func (r ID) Type() Type + func (r ID) Value() (driver.Value, error) + type NullID struct + ID ID + Valid bool + func (u *NullID) Scan(src interface{}) error + func (u *NullID) UnmarshalJSON(b []byte) error + func (u NullID) MarshalJSON() ([]byte, error) + func (u NullID) Value() (driver.Value, error) + type NullRefID = NullID + type RefID = ID + type Requirement func(ID) error + func HasTag(tag byte) Requirement + func HasType(t Type) Requirement + type Tagger byte + func NewTagger(tag byte) Tagger + func (t Tagger) AnyMatcher() AnyMatcher + func (t Tagger) HasCorrectTag(r ID) bool + func (t Tagger) HasTag(r ID, tag byte) bool + func (t Tagger) IsTagged(r ID) bool + func (t Tagger) New() (ID, error) + func (t Tagger) NewRandom() (ID, error) + func (t Tagger) Parse(s string) (ID, error) + func (t Tagger) ParseWithRequire(s string, reqs ...Requirement) (ID, error) + func (t Tagger) Tag() byte + type Type byte + const RandomPrefixed + const TimePrefixed + func (i Type) String() string Other modules containing this package github.com/dropwhile/refid