Explore >> Select a destination


You are here

lanie.dev
| | lewisdale.dev
3.9 parsecs away

Travel
| | Now it's time to actually try and send a "ping" to a website
| | hjr265.me
4.0 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.
| | damienradtke.com
3.4 parsecs away

Travel
| |
| | attilaolah.eu
22.6 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.