
Go Mocking with Interfaces for Unit Tests
Go mocking lets you test code that depends on slow services, such as a weather API, without calling them. In this post, you will…
Topic
Golang tutorials and guides: Go basics, concurrency, goroutines, channels and backend development with Go.

Go mocking lets you test code that depends on slow services, such as a weather API, without calling them. In this post, you will…

The Go HTTP client lets your program call other web services, such as a payment API or a weather service. In this post, you…

Go middleware wraps your HTTP handlers with shared behaviour such as logging, panic recovery and authentication. In this post, you will write each of…

Go graceful shutdown lets a server finish the requests it is already handling before it stops. In this post, you will catch stop signals,…

Go Docker deployment packs your compiled program into a small container image that runs the same way on every server. In this post, you…

Go cross compilation lets you build a program for Windows, macOS or Linux from one computer, with no extra tools. In this post, you…

Go profiling shows exactly where your program spends its time and memory, so you fix real bottlenecks instead of guessing. In this post, you…

The Go flag package turns a plain program into a command line tool with options and a help screen. In this post, you will…

Go environment variables let you configure a program from the outside. So the same binary runs on your laptop, in testing and in production.…

Go structured logging records events as key and value pairs, so both people and tools can read your logs easily. In this post, you…