Documentation ¶
Overview ¶
Package ulids provides support for generating and parsing ULIDs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonotonicULIDGenerator ¶
MonotonicULIDGenerator returns a function that generates ULID(s) in strictly increasing order.
- is safe for concurrent use.
- panics if a ULID fails to be generated
func MustNew ¶
MustNew generates a new crypto/rand based ULID.
- panics if a ULID fails to be generated
func RandomULIDGenerator ¶
RandomULIDGenerator returns a function that generates a cryptographically random ULID
- this is ~5x slower than MonotonicULIDGenerator functions
- panics if a ULID fails to be generated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.