Versions in this module Expand all Collapse all v0 v0.0.15 Dec 14, 2022 v0.0.14 Dec 1, 2022 v0.0.13 Dec 1, 2022 v0.0.12 Dec 1, 2022 v0.0.11 Dec 1, 2022 v0.0.10 Nov 29, 2022 v0.0.9 Nov 29, 2022 v0.0.8 Nov 28, 2022 v0.0.7 Nov 28, 2022 Changes in this version + const IDSize + var IDBase64Len = len(ID{}.Base64()) + var IDHexLen = len(ID{}.Hex()) + var IDStringLen = IDBase64Len + func Decrypt(d []byte, key Key) ([]byte, error) + func Encrypt(d []byte, key Key) []byte + type Binary []byte + func BinaryFromBoolean(b bool) Binary + func BinaryFromFloat64(f float64) Binary + func BinaryFromInt(i int64) Binary + func BinaryFromString(s string) Binary + func BinaryFromTime(date time.Time) Binary + func BinaryFromUint(i uint64) Binary + func ParseBinary(h string) Binary + func ParseBinaryBase64(s string) Binary + func ParseBinaryHex(h string) Binary + func (d *Binary) Base64() string + func (d *Binary) Decrypt(key Key) error + func (d *Binary) Encrypt(key Key) + func (d *Binary) FromBoolean(b bool) error + func (d *Binary) FromFloat64(f float64) error + func (d *Binary) FromInt64(i int64) error + func (d *Binary) FromString(s string) error + func (d *Binary) FromTime(date time.Time) error + func (d *Binary) FromUint(i uint64) error + func (d *Binary) UnmarshalJSON(b []byte) error + func (d *Binary) UnmarshalYAML(value *yaml.Node) error + func (d Binary) Equals(data Binary) bool + func (d Binary) Hash64() uint64 + func (d Binary) Hex() string + func (d Binary) MarshalJSON() ([]byte, error) + func (d Binary) MarshalYAML() (interface{}, error) + func (d Binary) String() string + func (d Binary) ToBoolean() (bool, error) + func (d Binary) ToFloat64() (float64, error) + func (d Binary) ToID() ID + func (d Binary) ToInt64() (int64, error) + func (d Binary) ToRID() RichID + func (d Binary) ToString() (string, error) + func (d Binary) ToTime() (time.Time, error) + func (d Binary) ToUint() (uint64, error) + type BinaryOut <-chan Binary + func (s BinaryOut) IDs() IDsOut + func (s BinaryOut) List() []Binary + type BinaryPairOut <-chan [2]Binary + func (s BinaryPairOut) List() [][2]Binary + type ID [IDSize]byte + var MaxID ID + var MinID ID + func B2ID(b Binary) ID + func MustParseID(str string) ID + func NewID() ID + func ParseID(str string) (ID, error) + func ParseIDBase32(str string) (ID, error) + func ParseIDBase62(str string) (ID, error) + func ParseIDBase64(str string) (ID, error) + func ParseIDHex(str string) (ID, error) + func ParseIDNC(i interface{}) ID + func UnwrapID(rid RichID) ID + func UnwrapRID(rid RichID) (ID, byte) + func (id *ID) UnmarshalJSON(b []byte) error + func (id *ID) UnmarshalYAML(value *yaml.Node) error + func (id ID) Base32() string + func (id ID) Base62() string + func (id ID) Base64() string + func (id ID) Equals(other ID) bool + func (id ID) Hex() string + func (id ID) Invert() ID + func (id ID) IsNull() bool + func (id ID) LessThan(other ID) bool + func (id ID) MarshalJSON() ([]byte, error) + func (id ID) MarshalYAML() (interface{}, error) + func (id ID) String() string + type IDBoundGroup []IDBounds + func (idg *IDBoundGroup) Add(b IDBounds) + func (idg *IDBoundGroup) AddAll(bs IDBoundGroup) + func (idg *IDBoundGroup) Remove(b IDBounds) bool + func (idg IDBoundGroup) Contains(id ID) bool + type IDBounds struct + Lower ID + Upper ID + var MaxBounds IDBounds + func ParseIDBounds(ibstr string) (IDBounds, error) + func (ib *IDBounds) UnmarshalJSON(b []byte) error + func (ib *IDBounds) UnmarshalYAML(value *yaml.Node) error + func (ib IDBounds) Contains(id ID) bool + func (ib IDBounds) MarshalJSON() ([]byte, error) + func (ib IDBounds) MarshalYAML() (interface{}, error) + func (ib IDBounds) Middle() ID + func (ib IDBounds) NewID() ID + func (ib IDBounds) Split() [2]IDBounds + func (ib IDBounds) String() string + type IDList []ID + func (ic *IDList) Remove(id ID, remove int) int + func (ic *IDList) Swap(i, j int) + func (ic *IDList) UnmarshalJSON(b []byte) error + func (ic IDList) Contains(id ID) bool + func (ic IDList) Copy() IDList + func (ic IDList) Len() int + func (ic IDList) Less(i, j int) bool + func (ic IDList) MarshalJSON() ([]byte, error) + func (ic IDList) Set() IDSet + type IDMap map[ID]ID + func (rs *IDMap) UnmarshalJSON(b []byte) error + func (rs *IDMap) UnmarshalYAML(value *yaml.Node) error + func (rs IDMap) ContainsValue(id ID) bool + func (rs IDMap) KeyByValue(id ID) *ID + func (rs IDMap) KeySet() IDSet + func (rs IDMap) MarshalJSON() ([]byte, error) + func (rs IDMap) MarshalYAML() (interface{}, error) + func (rs IDMap) Pick() ID + func (rs IDMap) ValueSet() IDSet + func (rs IDMap) Values() []ID + type IDPair [2]ID + type IDPairList []IDPair + func (il IDPairList) Keys() IDList + func (il IDPairList) Map() IDMap + func (il IDPairList) Values() IDList + type IDPairsIn chan<- IDPair + type IDPairsOut <-chan IDPair + func (s IDPairsOut) Keys() IDsOut + func (s IDPairsOut) Length() int64 + func (s IDPairsOut) List() []IDPair + func (s IDPairsOut) Map() IDMap + func (s IDPairsOut) Values() IDsOut + type IDSet map[ID]bool + func NewIDSet(ids ...ID) IDSet + func (ic *IDSet) AddAll(set IDSet) + func (ic *IDSet) List() IDList + func (ic *IDSet) SortedList() IDList + func (ic *IDSet) UnmarshalJSON(b []byte) error + func (ic IDSet) Contains(id ID) bool + func (ic IDSet) Copy() IDSet + func (ic IDSet) Hash() ID + func (ic IDSet) MarshalJSON() ([]byte, error) + func (ic IDSet) Without(n IDSet) IDSet + type IDsIn chan<- ID + type IDsOut <-chan ID + func (s IDsOut) Length() int64 + func (s IDsOut) List() IDList + func (s IDsOut) Pipe(s2 IDsIn) + func (s IDsOut) Set() IDSet + func (s IDsOut) Unique() IDsOut + type Key [32]byte + type KeyedIDPair struct + Key Binary + Pair IDPair + type KeyedIDPairList []KeyedIDPair + func (il KeyedIDPairList) Keys() IDList + func (il KeyedIDPairList) Map() IDMap + func (il KeyedIDPairList) Values() IDList + type KeyedIDPairsIn chan<- KeyedIDPair + type KeyedIDPairsOut <-chan KeyedIDPair + func (s KeyedIDPairsOut) Length() int64 + func (s KeyedIDPairsOut) List() []KeyedIDPair + func (s KeyedIDPairsOut) PairKeys() IDsOut + func (s KeyedIDPairsOut) PairList() []IDPair + func (s KeyedIDPairsOut) PairMap() IDMap + func (s KeyedIDPairsOut) PairValueList() IDList + func (s KeyedIDPairsOut) PairValueSet() IDSet + func (s KeyedIDPairsOut) PairValues() IDsOut + func (s KeyedIDPairsOut) Pairs() IDPairsOut + type RichID [IDSize + 1]byte + func ParseRID(str string) (RichID, error) + func WrapID(id ID, info byte) RichID + func (id *RichID) SetFlag(flag byte) + func (id *RichID) UnsetFlag(flag byte) + func (id RichID) HasFlag(flag byte) bool + func (id RichID) Hex() string + func (id RichID) String() string