gitlab.com/evatix-go/core@v1.3.55/coreutils/stringutil/IsDefined.go (about) 1 package stringutil 2 3 import "strings" 4 5 // IsDefined alias for NOT IsEmptyOrWhitespace 6 func IsDefined(str string) bool { 7 return !(str == "" || str == " " || str == "\n" || strings.TrimSpace(str) == "") 8 }