package random

import "github.com/labstack/gommon/random"

Index

Constants

const (
	Uppercase    = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	Lowercase    = "abcdefghijklmnopqrstuvwxyz"
	Alphabetic   = Uppercase + Lowercase
	Numeric      = "0123456789"
	Alphanumeric = Alphabetic + Numeric
	Symbols      = "`" + `~!@#$%^&*()-_+={}[]|\;:"<>,./?`
	Hex          = Numeric + "abcdef"
)

Charsets

Functions

func String

func String(length uint8, charsets ...string) string

Types

type Random

type Random struct {
}

func New

func New() *Random

func (*Random) String

func (r *Random) String(length uint8, charsets ...string) string

Source Files

random.go

Version
v0.4.0
Published
Jun 14, 2022
Platform
windows/amd64
Imports
3 packages
Last checked
1 minute ago

Tools for package owners.