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 {
	// contains filtered or unexported fields
}

func New

func New() *Random

func (*Random) String

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

Source Files

random.go

Version
v0.4.2 (latest)
Published
Dec 20, 2023
Platform
darwin/amd64
Imports
5 packages
Last checked
1 hour ago

Tools for package owners.