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" }} → true
Last updated:
March 5, 2025
:
content: Remove "related" array from function and method pages (2fcd21ee5)
Improve this page