Error handling in Go web apps shouldn't be so awkward
A pattern for error handling in Go is described that simplifies error handling and eliminates repetitive code. The pattern involves converting error-returning handlers to standard http.HandlerFunc, using a custom error type to include an HTTP status, and creating a customHandler function to handle e.. read more Â














