/explore
|
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. |
|
| | | | | ||
| | | | |
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. |
|
| | | | | ||
| | | | |
blog.rasc.ch
|
|
| | | | | ||
| | | | |
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. |
|
| | | |||