Documentation
¶
Index ¶
- func CheckPresence(target string, array []string) bool
- func ContainsLetter(str string) bool
- func CountLines(fileContet string) int
- func CreateJSON(values ...string) string
- func ExtractString(data *string, first, last string) string
- func ExtractTextFromQuery(target string, ignore []string) []string
- func IsASCII(s string) bool
- func IsASCIIRune(r rune) bool
- func IsLower(str string) bool
- func IsUpper(str string) bool
- func Join(strs ...string) string
- func LowerizeString(str *string) string
- func RemoveFromByte(s []byte, i int) []byte
- func RemoveFromString(data string, i int) string
- func RemoveNonAscii(str string) string
- func RemoveWhiteSpaceString(str string) string
- func ReplaceAtIndex(str string, replacement rune, index int) string
- func Split(data string) []string
- func UpperizeString(str *string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPresence ¶
CheckPresence verify that the given array contains the target string
func ContainsLetter ¶
ContainsLetter verity that the given string contains, at least, an ASCII character
func CountLines ¶
CountLines return the number of lines in the given string
func CreateJSON ¶
CreateJSON is delegated to create a json object for the key pair in input
func ExtractString ¶
ExtractString is delegated to filter the content of the given data delimited by 'first' and 'last' string
func ExtractTextFromQuery ¶
ExtractTextFromQuery is delegated to retrieve the list of string involved in the query
func IsASCIIRune ¶ added in v0.0.4
IsASCIIRune is delegated to verify if the given character is ASCII compliant
func LowerizeString ¶ added in v0.0.3
LowerizeString is delegated to lowerize the case of an upper case character
func RemoveFromByte ¶ added in v0.0.4
RemoveFromByte Remove a given element from a string NOTE: Panic in case of index out of bound
func RemoveFromString ¶
RemoveFromString Remove a given element from a string
func RemoveNonAscii ¶ added in v0.0.4
RemoveNonAscii is delegated to clean the text from the NON ASCII character
func RemoveWhiteSpaceString ¶
RemoveWhiteSpaceString is delegated to remove the whitespace from the given string FIXME: unefficient, use 2n size, use RemoveFromString method instead
func ReplaceAtIndex ¶ added in v0.0.3
ReplaceAtIndex is delegated to replace the character related to the index with the input rune
func UpperizeString ¶ added in v0.0.3
UpperizeString is delegated to upperize the case of a lower case character
Types ¶
This section is empty.