Versions in this module Expand all Collapse all v1 v1.1.0 Nov 4, 2023 Changes in this version + const Epoch + var ErrInvalidFormat = errors.New("invalid format") + var Zero = KSUID + func Base62Decode(s string) ([]byte, error) + func Base62Encode(data []byte) string + type KSUID [20]byte + func Generate() KSUID + func GenerateWithTime(t time.Time) KSUID + func GenerateWithTimestamp(timestamp uint32) KSUID + func (id *KSUID) Parse(s string) error + func (id *KSUID) Scan(src interface{}) error + func (id *KSUID) UnmarshalJSON(data []byte) error + func (id *KSUID) ValueOrZero() KSUID + func (id KSUID) GoString() string + func (id KSUID) IsZero() bool + func (id KSUID) MarshalJSON() ([]byte, error) + func (id KSUID) String() string + func (id KSUID) Time() time.Time + func (id KSUID) Timestamp() uint32 + func (id KSUID) Value() (driver.Value, error) + type KSUIDs []KSUID + func (id KSUIDs) Value() (driver.Value, error) + func (ids *KSUIDs) Scan(src interface{}) error + func (ids *KSUIDs) UnmarshalJSON(data []byte) error + func (ids KSUIDs) MarshalJSON() ([]byte, error) + func (ids KSUIDs) Strings() []string + func (pids *KSUIDs) Parse(ss []string) error