strings.TrimSpace
Syntax
strings.TrimSpace INPUT
Returns
string
Whitespace characters include \t
, \n
, \v
, \f
, \r
, and characters in the Unicode Space Separator category.
{{ strings.TrimSpace "\n\r\t foo \n\r\t" }} → foo
Syntax
strings.TrimSpace INPUT
Returns
string
Whitespace characters include \t
, \n
, \v
, \f
, \r
, and characters in the Unicode Space Separator category.
{{ strings.TrimSpace "\n\r\t foo \n\r\t" }} → foo