rand

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base62

func Base62(length int) string

func Base64

func Base64(length int) string

func Dec

func Dec(length int) string

func Hex

func Hex(length int) string

func String

func String(length int, charset Charset) string

Types

type Charset

type Charset string
const (
	Base64Chars Charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/"
	Base62Chars Charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	HexChars    Charset = "0123456789abcdef"
	DecChars    Charset = "0123456789"
)

Jump to

Keyboard shortcuts

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