golang 去除字符串首尾空格

str := " dfghhj "
str = strings.TrimSpace(str)

 

posted @ 2021-12-31 10:52  2147483647  阅读(618)  评论(0编辑  收藏  举报