/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

benhoyt.com
| | xnacly.me

Guide about working with JSON in go with HTTP server example
1.8 parsecs

Travel
| |
| | ewintr.nl

[AI summary] A guide on how to use Golang's built-in httptest library to create a mock server and record outbound HTTP requests for unit testing Go applications without external dependencies.
1.7 parsecs

Travel
| |
| | bartlomiejmika.com

The purpose of this post is to provide instructions on how to setup a simple RESTful API server, in Golang, using only the net/http package and not any other third-party web framework. You will learn how to create REST endpoints within your project that can handle POST, GET, PUT and DELETE HTTP requests. This is the first post in a multi-post series.
0.9 parsecs

Travel
| |
| | risi.co

[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.
11.0 parsecs

Travel
|