Documentation
¶
Index ¶
- Constants
- Variables
- func Abbreviate(s string, maxWidth int) (string, error)
- func BytesToString(b []byte) string
- func Center(s string, width int, fillRune rune) string
- func CountMatches(s string, sub string) int
- func Float64ToString()
- func InsertByte(s string, offset int, v byte) string
- func InsertRune(s string, offset int, v rune) string
- func InsertString(s string, offset int, v string) string
- func IntToString(i int) string
- func IsAllLowerCase(s string) bool
- func IsAllUpperCase(s string) bool
- func IsAlpha(s string) bool
- func IsAlphaSpace(s string) bool
- func IsAlphanumeric(s string) bool
- func IsAlphanumericSpace(s string) bool
- func IsAsciiPrintable(s string) bool
- func IsBlank(s string) bool
- func IsEmpty(s string) bool
- func IsNotEmpty(s string) bool
- func IsNumeric(s string) bool
- func IsNumericSpace(s string) bool
- func IsURI(s string) bool
- func IsWhiteSpace(s string) bool
- func Join(strs ...string) string
- func Random(count int, s string) string
- func RandomAlphabetic(count int) string
- func RandomAlphabeticLowercase(count int) string
- func RandomAlphabeticUppercase(count int) string
- func RandomAlphanumeric(count int) string
- func RandomAlphanumericLowercase(count int) string
- func RandomAlphanumericUppercase(count int) string
- func RandomAlphanumericpunctuation(count int) string
- func RandomNumeric(count int) string
- func Reverse(s string) string
- func ReverseDelimited(s, sep string) string
- func ReverseWords(s string) string
- func Rotate(s string, shift int) string
- func StringToBytes(s string) []byte
- func StringToInt(s string) (int, error)
- func StringToRune(s string) []rune
- func SubString(s string, beginIndex int, endIndex int)
- func SwapCase(s string) string
Constants ¶
View Source
const AsciiLetters string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
View Source
const AsciiLowercase string = "abcdefghijklmnopqrstuvwxyz"
View Source
const AsciiUppercase string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
View Source
const Digits string = "0123456789"
View Source
const HexDigits string = "0123456789abcdefABCDEF"
View Source
const OctDigits string = "01234567"
View Source
const Printable string = "" // Ref Python
View Source
const Punctuation string = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
View Source
const Whitespace string = ""
Variables ¶
View Source
var ErrSyntax = errors.New("invalid syntax")
Functions ¶
func BytesToString ¶
func CountMatches ¶
func IntToString ¶
func IsAllLowerCase ¶
func IsAllUpperCase ¶
func IsAlphaSpace ¶
func IsAlphanumeric ¶
func IsAlphanumericSpace ¶
func IsAsciiPrintable ¶
func IsNotEmpty ¶
func IsNumericSpace ¶
func IsWhiteSpace ¶
func RandomAlphabetic ¶
func RandomAlphanumeric ¶
func RandomNumeric ¶
func ReverseDelimited ¶
func ReverseWords ¶
func StringToBytes ¶
func StringToInt ¶
func StringToRune ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.