Documentation ¶
Index ¶
- func DefaultIfBlank(str, def string) string
- func Equals(a, b string) bool
- func EqualsIgnoreCase(a, b string) bool
- func IsAnyBlank(strs ...string) bool
- func IsBlank(str string) bool
- func IsEmpty(str string) bool
- func IsNotBlank(str string) bool
- func IsNotEmpty(str string) bool
- func RuneLen(s string) int
- func Substr(s string, start, length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIfBlank ¶
func EqualsIgnoreCase ¶
func IsAnyBlank ¶
func IsBlank ¶
IsBlank checks if a string is whitespace or empty (""). Observe the following behavior:
goutils.IsBlank("") = true goutils.IsBlank(" ") = true goutils.IsBlank("bob") = false goutils.IsBlank(" bob ") = false
Parameter:
str - the string to check
Returns:
true - if the string is whitespace or empty ("")
func IsEmpty ¶
IsEmpty checks if a string is empty (""). Returns true if empty, and false otherwise.
func IsNotBlank ¶
func IsNotEmpty ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.