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.2.7
Published
Jul 8, 2018
Platform
darwin/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.