What it does
RespKit formats responses and maps errors inside Go handlers. To start, install the package and send a first response from a Go handler. The documentation and the GitHub repository are linked from the RespKit website.
Capabilities
- Error mapping with stable error codes
- Safe messages in API responses
- Localized messages
- Examples for net/http, Gin, Echo, Fiber, Chi, mux, and Beego
When to use it
- You want consistent HTTP responses from your Go handlers.
- You want API error responses that carry stable error codes and safe messages.
- You need to return localized messages in responses.