Documentation
¶
Overview ¶
Copyright 2023 Christopher Briscoe. All rights reserved.
Copyright 2023 Christopher Briscoe. All rights reserved.
Index ¶
- func IsBackslash(r rune) bool
- func IsDigit(r rune) bool
- func IsLower(r rune) bool
- func IsQuote(r rune) bool
- func IsReadable(r rune) bool
- func IsSpace(r rune) bool
- func IsSpecial(r rune) bool
- func IsUpper(r rune) bool
- func SortAndRemoveDuplicates(s []string) []string
- func ToASCII(s string) string
- func TrimQuotes(s string) string
- func UnsafeByteToString(b []byte) string
- func UnsafeStringToByte(s string) (b []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBackslash ¶
IsBackslash returns true if the rune is an ASCII backslash [\].
func IsReadable ¶
IsReadable returns true if the rune is an ASCII readable character.
func IsSpecial ¶
IsSpecial returns true if the rune is an ASCII special character and not one of the 3 quote characters or backslash. [!#$%&()*+,-./:;<=>?@^_{|}~] and not ["'`\]
func SortAndRemoveDuplicates ¶
SortAndRemoveDuplicates will sort the string slice while removing duplicates.
func TrimQuotes ¶
TrimQuotes removes quotes from the beginning and end of a string.
func UnsafeByteToString ¶
UnsafeByteToString converts a byte to a string without memory allocations. They will both share the same bytes, so make sure not to modify the bytes while the string still survives.
func UnsafeStringToByte ¶
UnsafeStringToByte converts a string to a byte without memory allocations. They will both share the same bytes, so make sure not to modify the bytes while the string still survives.
Types ¶
This section is empty.