Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBase62 ¶
func NewBase62() string
NewBase62 creates a new random []byte and returns it as a base62 string or panics.
func NewBase64 ¶
func NewBase64() string
NewBase64 creates a new random []byte and returns it as a base64 string or panics.
func NewHex ¶
func NewHex() string
NewHex creates a new random []byte and returns it as a hex string or panics.
func NewKSUID ¶
func NewKSUID() string
NewKSUID creates a new random []byte and returns it as a KSUID string or panics. https://github.com/segmentio/ksuid
func NewULID ¶
func NewULID() string
NewULID creates a new random []byte and returns it as a ULID string or panics. https://github.com/oklog/ulid
func NewXID ¶ added in v0.1.2
func NewXID() string
NewXID creates a new random []byte and returns it as a XID string or panics. https://github.com/rs/xid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.