strings.ContainsNonSpace
Reports whether the given string contains any non-space characters as defined by Unicode.
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" }} → trueLast updated:
June 18, 2026
:
Merge commit 'c86d9f4aa8a58931f52df6516f10b67c807505fb' (be780afa7)
Improve this page