Versions in this module Expand all Collapse all v0 v0.0.1 Apr 8, 2024 Changes in this version + var ErrInvalidHex = errors.New("the provided hex string is not a valid ObjectID") + func IsValidObjectID(s string) bool + func NextSID() string + type ObjectID [12]byte + var NilObjectID ObjectID + func NewObjectID() ObjectID + func NewObjectIDFromTimestamp(timestamp time.Time) ObjectID + func ObjectIDFromHex(s string) (ObjectID, error) + func (id *ObjectID) UnmarshalJSON(b []byte) error + func (id *ObjectID) UnmarshalText(b []byte) error + func (id ObjectID) Hex() string + func (id ObjectID) IsZero() bool + func (id ObjectID) MarshalJSON() ([]byte, error) + func (id ObjectID) MarshalText() ([]byte, error) + func (id ObjectID) String() string + func (id ObjectID) Timestamp() time.Time