Versions in this module Expand all Collapse all v1 v1.2.4 Apr 18, 2020 v1.2.3 Apr 18, 2020 Changes in this version + var ErrInvalidID = errors.New("xid: invalid ID") + var ErrScanUnsupportedType = errors.New("xid: scanning unsupported type") + func Sort(ids []ID) + type ID [rawLen]byte + func FromBytes(b []byte) (ID, error) + func FromString(id string) (ID, error) + func New() ID + func NewWithTime(t time.Time) ID + func NilID() ID + func (id *ID) Scan(value interface{}) (err error) + func (id *ID) UnmarshalJSON(b []byte) error + func (id *ID) UnmarshalText(text []byte) error + func (id ID) Bytes() []byte + func (id ID) Compare(other ID) int + func (id ID) Counter() int32 + func (id ID) IsNil() bool + func (id ID) Machine() []byte + func (id ID) MarshalJSON() ([]byte, error) + func (id ID) MarshalText() ([]byte, error) + func (id ID) Pid() uint16 + func (id ID) String() string + func (id ID) Time() time.Time + func (id ID) Value() (driver.Value, error)