uuid

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() string

New creates a new random UUID or panics.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL