strings.ContainsNonSpace
Syntax
strings.ContainsNonSpace STRING
Returns
bool
Whitespace characters include \t
, \n
, \v
, \f
, \r
, and characters in the Unicode Space Separator category.
{{ strings.ContainsNonSpace "\n" }} → false
{{ strings.ContainsNonSpace " " }} → false
{{ strings.ContainsNonSpace "\n abc" }} → true