json xml yml curl to go

手动编写xml 或 json 的struct 是极繁琐的 , 需要对照着树形结构一个一个的去写, 效率太慢且容易出错, 现推荐两款在线转码的工具
https://mholt.github.io/json-to-go/
https://www.onlinetool.io/xmltogo/
xml与json相互转换
“encoding/json”
“encoding/xml”



https://github.com/mholt/json-to-go
https://github.com/mholt/json-to-go/blob/master/json-to-go.js



Convert YAML to Go struct
https://yaml.to-go.online/
https://github.com/mengzhuo/yaml-to-go
https://yaml2go.prasadg.dev/
https://github.com/PrasadG193/yaml2go

curl-to-Go
https://mholt.github.io/curl-to-go/
https://github.com/mholt/curl-to-go



// Generated by curl-to-Go: https://mholt.github.io/curl-to-go
resp, err := http.Get(“www.badu.com”)
if err != nil {
// handle err
}
defer resp.Body.Close()



json to golang Chrome插件
http://www.cnplugins.com/devtool/json-to-golang/
https://github.com/ljun20160606/jsonToGo
http://www.cnplugins.com/devtool/json-to-golang/download.html



json to golang jetbrains插件
https://plugins.jetbrains.com/plugin/11089-json-to-go



其它网站
http://json2struct.mervine.net/
https://www.sojson.com/json/json2go.html
https://www.cnblogs.com/demodashi/p/10486794.html
https://oktools.net/json2go
https://www.codeutils.top/golang/zh
https://www.pianshen.com/article/9781266846/
https://github.com/usthooz/json2go


Category golang