Documentation ¶
Index ¶
Constants ¶
View Source
const ( Highest = "ZZZZZZZZZZZZZZZZZZZZZZZZZZ" // Highest is the highest possible ULID Lowest = "00000000000000000000000000" // Lowest is the lowest possible ULID )
Variables ¶
This section is empty.
Functions ¶
func NewRandomULID ¶
NewRandomULID returns a new ULID string using a random time in an ~80 year range around the current datetime, or an error if something goes wrong.
Types ¶
type ULID ¶
type ULID string
ULID represents a Universally Unique Lexicographically Sortable Identifier of 26 characters. See https://github.com/oklog/ulid
Click to show internal directories.
Click to hide internal directories.