`import:”github.com/axgle/mahonia”
enc := mahonia.NewDecoder(“gb18030”)
goStr:= enc.ConvertString(cStr)
fmt.Println(goStr)`
强大的VS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
有疑问加站长微信联系(非本文作者)
`import:”github.com/axgle/mahonia”
enc := mahonia.NewDecoder(“gb18030”)
goStr:= enc.ConvertString(cStr)
fmt.Println(goStr)`
强大的VS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
`单行代码`
`import:”github.com/axgle/mahonia”
enc := mahonia.NewDecoder(“gb18030”)
goStr:= enc.ConvertString(cStr)
fmt.Println(goStr)`
强大的VS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!