
Go Error Wrapping with errors.Is and errors.As
Go error wrapping lets you add context to an error without losing the original cause. In this post, you will learn how %w, errors.Is,…
Tag

Go error wrapping lets you add context to an error without losing the original cause. In this post, you will learn how %w, errors.Is,…

A Go in-memory cache keeps recent results inside your program, so you do not repeat slow work. In this post, you will build a…

Go pagination lets your API return a long list in small pages instead of one huge reply. In this post, you will learn two…

Go retry backoff is a simple idea. When a call fails, wait a little and try again, then wait longer each time. In this…

Go health checks are small HTTP endpoints that tell a platform whether your service is alive and ready for traffic. In this post, you…

Go microservices split one big application into small services that talk to each other over the network. In this post, you will learn what…

Go HTML templates let you build web pages from data, and they escape dangerous characters for you. In this post, you will learn the…

Go rate limiting protects your API by limiting how many requests each client can send in a given time. In this post, you will…

Go httptest is a standard library package that lets you test HTTP handlers without opening a real port. In this post, you will learn…

Go table-driven tests let you check many inputs with one short piece of test code. In this post, you will learn how to list…