id

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNanoID

func NewNanoID(length int) (string, error)

func NewRandomNumber

func NewRandomNumber(length int) (int, error)

func NewSnowflakeID added in v0.1.18

func NewSnowflakeID() (int64, error)

func NewUUID added in v0.1.18

func NewUUID() (string, error)

NewUUID returns a new UUID v7.

func NewXID added in v0.1.18

func NewXID() (string, error)

NewXID returns a new XID. xid is a globally unique id generator thought for the web.

Types

This section is empty.

Jump to

Keyboard shortcuts

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