Documentation
¶
Index ¶
Constants ¶
View Source
const ( UlidByteSize = 16 UlidStringSize = 26 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[A comparable] interface { Has(a A) bool Add(a A) AddAll(a ...A) Remove(a A) Count() int Values() []A }
func NewSet ¶
func NewSet[A comparable]() Set[A]
type Ulid ¶ added in v1.2.0
type Ulid interface {
TimeBytes() []byte
EntropyBytes() []byte
Bytes() []byte
String() string
Time() *time.Time
BitString() string
Equals(other Ulid) bool
MarshalJSON() ([]byte, error)
UnmarshalJSON([]byte) error
}
func MustUlidFromString ¶ added in v1.2.0
func NewMonotonicUlid ¶ added in v1.2.0
func NewMonotonicUlid() Ulid
func NewZeroUlid ¶ added in v1.2.0
func NewZeroUlid() Ulid
func UlidFromBytes ¶ added in v1.2.0
func UlidFromString ¶ added in v1.2.0
func UlidFromTime ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.