strings.TrimSpace

New in v0.136.3

空白字符包括 \t\n\v\f\rUnicode Space Separator 類別中的字符。

{{ strings.TrimSpace "\n\r\t   foo   \n\r\t" }} → foo