package
0.0.0-20201117175203-a82363231997
Repository: https://github.com/1set/gut.git
Documentation: pkg.go.dev

# Functions

IsBlank checks if the string contains only whitespaces.
IsEmpty checks if the string is empty.
IsNotBlank checks if the string contains any non-whitespace characters.
IsNotEmpty checks if the string is not empty.
Length returns the number of runes in a given string.
NotBlankOrDefault returns the string if it is not blank, or returns the fallback.
NotEmptyOrDefault returns the string if it is not empty, or returns the fallback.
Shrink returns a string that replaces consecutive whitespace characters in s with the sep string.
TrimAfterFirst returns s without the part after the first instance of substr and that instance itself.
TrimAfterLast returns s without the part after the last instance of substr and that instance itself.
TrimBeforeFirst returns s without the part before the first instance of substr and that instance itself.
TrimBeforeLast returns s without the part before the last instance of substr and that instance itself.
Truncate returns first n runes of s.

# Constants

No description provided by the author