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