Documentation
¶
Index ¶
- func ContainsAny(str string, matches ...string) (string, bool)
- func FromBytes(b []byte) string
- func IsAsciiSpace(c byte) bool
- func IsBlank(value string) bool
- func IsBlankPtr(ptr *string) bool
- func IsNotBlank(value string) bool
- func IsNotBlankPtr(ptr *string) bool
- func Join(separator string, filter func(str string) bool, strs ...string) string
- func JoinNonBlank(separator string, strs ...string) string
- func NormalizeSymbols(value string) string
- func NormalizeSymbolsPtr(value *string)
- func Remove(value string, rxp *regexp.Regexp) string
- func ToBytes(s string) []byte
- func ToTitle(value string) string
- func Unquote(s string) string
- func UpdateIfExists(ptr *string, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAny ¶
ContainsAny returns the first string from matches that is contained in str, and true (empty string and false otherwise)
func IsAsciiSpace ¶
IsAsciiSpace returns true if the given byte represents and ASCII code for whitespace, false otherwise
func IsBlankPtr ¶
IsBlankPtr Checks if the string pointer IS nil, empty, or whitespace
func IsNotBlank ¶
IsNotBlank Checks if the string is NOT empty or whitespace
func IsNotBlankPtr ¶
IsNotBlankPtr Checks if the string pointer is NOT nil, empty, or whitespace
func JoinNonBlank ¶
JoinNonBlank joins non-blank strings
func NormalizeSymbols ¶
func NormalizeSymbolsPtr ¶
func NormalizeSymbolsPtr(value *string)
NormalizeSymbolsPtr - Replaces all abnormal quotes characters with the ASCII version '"' (input is a pointer to string)
func ToTitle ¶
ToTitle transforms the given string into the title counterpart ("this is a title -> This Is A Title")
func Unquote ¶
Unquote removes quotes from the string if it is a correctly quoted string (`"abc"` -> `abc`)
func UpdateIfExists ¶
UpdateIfExists Updates the string pointer if the value is not blank
Types ¶
This section is empty.