Documentation ¶
Index ¶
- func CheckPresence(target string, array []string) bool
- func ContainsLetter(str string) bool
- func CountLinesString(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 IsBlank(str string) bool
- func IsLower(str string) bool
- func IsUpper(str string) bool
- func Join(strs ...string) string
- func RandomString(n int) string
- 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 Trim(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 CountLinesString ¶ added in v0.0.5
CountLinesString 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 IsBlank ¶ added in v0.0.6
IsBlank is delegated to verify that the does not contains only empty char
func RandomString ¶ added in v0.0.6
RandomString is delegated to create a random string with whitespace included as fast as possible
func RemoveFromString ¶
RemoveFromString Remove a given character in position i from the input string
func RemoveNonASCII ¶ added in v0.0.5
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: memory 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
Types ¶
This section is empty.