string_utils.go 176 B

12345678910
  1. package stringUtils
  2. import "strings"
  3. func IsEmptyOrNil(s string) bool {
  4. return &s == nil || len(s) == 0
  5. }
  6. func IsBlank(s string) bool {
  7. return strings.TrimSpace(s) == ""
  8. }