v.EthName = strings.Trim(v.EthName, " ")
//两种方法都可以.
v.EthName = strings.TrimSpace(v.EthName)
01-06
2864
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
v.EthName = strings.Trim(v.EthName, " ")
//两种方法都可以.
v.EthName = strings.TrimSpace(v.EthName)