nanoid

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAlphabetLen = len(consts.NumLowerUpper)

Functions

func IsPrimaryKey

func IsPrimaryKey(id string) bool

IsPrimaryKey verify is primary key

func Lower

func Lower(l ...int) string

Lower generate optional length nanoid, use const by default

func Must

func Must(l ...int) string

Must generate optional length nanoid

func Number

func Number(l ...int) string

Number generate optional length nanoid, use const by default

func PrimaryKey

func PrimaryKey(l ...int) func() string

PrimaryKey generate primary key

func String

func String(l ...int) string

String generate optional length nanoid, use const by default

func Upper

func Upper(l ...int) string

Upper generate optional length nanoid, use const by default

Types

This section is empty.

Jump to

Keyboard shortcuts

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