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 String ¶
String generates random string. ref: https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang
func StringPreOptimized ¶
StringPreOptimized generates random string. ref: github.com/labstack/gommon/random/random.go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.