/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

snprajwal.com
| | attilaolah.eu
3.1 parsecs away

Travel
| | Incidentally, decoding JSON data (or really, almost any data structure) isreally easy in Go (golang). We simply call json.Unmarshal(...) andboom! We have nice data structures.
| | xnacly.me
3.4 parsecs away

Travel
| | Guide about working with JSON in go with HTTP server example
| | risi.co
3.4 parsecs away

Travel
| | [AI summary] The blog post explains a Golang issue where custom UnmarshalJSON methods fail to unmarshal outer struct fields due to inner field shadowing and offers two solutions.
| | hjr265.me
22.9 parsecs away

Travel
| I know many will start with something like Gin whenever they are working on a JSON/HTTP-based backend in Go. I, not entirely sure if the minority, try to stick to Go's built-in net/http package and, at most, use Gorilla Mux in most of my Go projects. And so serving something simple like JSON is no different from the package's point of view as any other content type: whatever it is, write it out to the w, the http.