random

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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

ref: github.com/labstack/gommon/random/random.go

Variables

This section is empty.

Functions

func StringPreOptimized

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

StringPreOptimized generates random string. ref: github.com/labstack/gommon/random/random.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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