golang remove the first and last spaces of the string

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


Guess you like

Origin blog.csdn.net/weixin_43202081/article/details/109743416