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