3 ms·
Yes, it's pain! Unless you have the struct ready for unmarshalling json. I use gojson [https://github.com/ChimeraCoder/gojson https://github.com/ChimeraCoder/g
by girishso 11y ago
Yes, it's pain! Unless you have the struct ready for unmarshalling json. I use gojson [https://github.com/ChimeraCoder/gojson https://github.com/ChimeraCoder/gojson], it auto generates struct from json with a simple command.
curl -s https://api.github.com/repos/chimeracoder/gojson https://api.github.com/repos/chimeracoder/gojson | gojson -name=Repository