Documentation ¶
Overview ¶
Package ascii provide a library for working with ASCII characters.
Index ¶
Examples ¶
Constants ¶
View Source
const ( // Letters contains list of lower and upper case characters in ASCII. Letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" // LettersNumber contains list of lower and upper case characters in // ASCII along with numbers. LettersNumber = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890" // HexaLETTERS contains list of hexadecimal characters in upper cases. HexaLETTERS = "0123456789ABCDEF" // HexaLetters contains list of hexadecimal characters in lower and // upper cases. HexaLetters = "0123456789abcedfABCDEF" // Hexaletters contains list of hexadecimal characters in lower cases. Hexaletters = "0123456789abcedf" )
Variables ¶
View Source
var ( // Spaces contains list of white spaces in ASCII. Spaces = []byte{'\t', '\n', '\v', '\f', '\r', ' '} )
Functions ¶
func IsAlnum ¶
IsAlnum will return true if byte is ASCII alphanumeric character, otherwise it will return false.
func IsAlpha ¶
IsAlpha will return true if byte is ASCII alphabet character, otherwise it will return false.
func IsDigits ¶
IsDigits will return true if all bytes are ASCII digit, otherwise it will return false.
func IsSpace ¶
IsSpace will return true if byte is ASCII white spaces character, otherwise it will return false.
func Random ¶
Random generate random sequence of value from source with fixed length.
This function assume that random generator has been seeded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.