Versions in this module Expand all Collapse all v1 v1.0.1 Nov 24, 2017 v1.0.0 Nov 9, 2017 Changes in this version + var FastRander = newRBG() + func Compare(a, b KSUID) int + func IsSorted(ids []KSUID) bool + func SetRand(r io.Reader) + func Sort(ids []KSUID) + type CompressedSet []byte + func AppendCompressed(set []byte, ids ...KSUID) CompressedSet + func Compress(ids ...KSUID) CompressedSet + func (set CompressedSet) GoString() string + func (set CompressedSet) Iter() CompressedSetIter + func (set CompressedSet) String() string + type CompressedSetIter struct + KSUID KSUID + func (it *CompressedSetIter) Next() bool + type KSUID [byteLength]byte + var Max = KSUID{ ... } + var Nil KSUID + func FromBytes(b []byte) (KSUID, error) + func FromParts(t time.Time, payload []byte) (KSUID, error) + func New() KSUID + func NewRandom() (ksuid KSUID, err error) + func NewRandomWithTime(t time.Time) (ksuid KSUID, err error) + func Parse(s string) (KSUID, error) + func (i *KSUID) Scan(src interface{}) error + func (i *KSUID) Set(s string) error + func (i *KSUID) UnmarshalBinary(b []byte) error + func (i *KSUID) UnmarshalText(b []byte) error + func (i KSUID) Append(b []byte) []byte + func (i KSUID) Bytes() []byte + func (i KSUID) Get() interface{} + func (i KSUID) IsNil() bool + func (i KSUID) MarshalBinary() ([]byte, error) + func (i KSUID) MarshalText() ([]byte, error) + func (i KSUID) Payload() []byte + func (i KSUID) String() string + func (i KSUID) Time() time.Time + func (i KSUID) Timestamp() uint32 + func (i KSUID) Value() (driver.Value, error) + func (id KSUID) Next() KSUID + func (id KSUID) Prev() KSUID + type Sequence struct + Seed KSUID + func (seq *Sequence) Bounds() (min KSUID, max KSUID) + func (seq *Sequence) Next() (KSUID, error)