utils.go 189 B

1234567891011
  1. package mqtt_client
  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. }