/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

golb.hplar.ch
| | 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.
3.2 parsecs

Travel
| |
| | bartlomiejmika.com

The purpose of this post is to learn how our basic API server can read the body of a request. In addition, we will learn how to use an easy-to-use simple database for beginners called scribble.
4.8 parsecs

Travel
| |
| | blog.rasc.ch


0.0 parsecs

Travel
| |
| | jbrandhorst.com

Putting it all together As we touched upon earlier, we generate a package from the generated JS (meta, right?), which can be served from the server. We'll create a new file, main.go, in which we can spin up a server, serve the frontend and the gRPC backend. Much of the logic in this file is inspired by the excellent blog post put together by Brandon Philips over at CoreOS. We're using his elegant solution to serve both the HTTP API and the gRPC API on the same port.
20.7 parsecs

Travel
|