utils.go 183 B

1234567891011
  1. package utils
  2. import "strings"
  3. func IsStringEmpty(s string) bool {
  4. return strings.Trim(s, " ") == ""
  5. }
  6. func IsStringNotEmpty(s string) bool {
  7. return strings.Trim(s, " ") != ""
  8. }