This package provides an implementation of ULIDs, which are a lexicographically-sortable alternative to UUIDs.
Represents a ULID string.
Represents the binary representation of a ULID.
Returns a function that can be used to generate ULIDs. Any ULIDs generated within the same millisecond by the resulting function will increase monotonically.
The generator functions are thread-safe.
Generates an ULID.
Returns the time component of the ULID s.
Returns the random component of the ULID s.
Returns the binary representation of the ULID u.
Converts bs to a ULID. Raises an error if the result is not a valid ULID.