Documentation
¶
Index ¶
- Constants
- func Dedent(s string) string
- func RandAlpha(n int) string
- func RandAlphaNum(n int) string
- func RandBool() bool
- func RandBytes(n int) []byte
- func RandElement(items []string) string
- func RandHex(n int) string
- func RandInt(low, high int) int
- func RandNumeric(n int) string
- func RandText(n int) string
- func RandUserAgent() string
Constants ¶
View Source
const ( LowerAlpha = "abcdefghijklmnopqrstuvwxyz" UpperAlpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" Alpha = LowerAlpha + UpperAlpha Digits = "0123456789" AlphaNum = Alpha + Digits HexChars = "0123456789abcdef" )
Variables ¶
This section is empty.
Functions ¶
func Dedent ¶
Dedent strips the common leading whitespace from all non-empty lines. Leading/trailing blank lines are trimmed.
func RandAlphaNum ¶
RandAlphaNum returns a random alphanumeric string of length n.
func RandElement ¶
RandElement returns a random element from a string slice.
func RandNumeric ¶
RandNumeric returns a random numeric string of length n.
func RandUserAgent ¶
func RandUserAgent() string
RandUserAgent generates a random realistic browser user agent string. Assembles components dynamically instead of picking from a static list.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.