Making http.Handler a little easier
- Implemented JSONBodyHandler for automatic JSON body parsing. - Added comprehensive unit tests for JSONBodyHandler covering successful decoding, invalid JSON, empty bodies, and error propagation. - Refactored handler_test.go to improve test structure and resolve linting issues (funlen, gocritic). |
||
|---|---|---|
| .gitignore | ||
| .golangci.yaml | ||
| go.mod | ||
| go.sum | ||
| handler.go | ||
| handler_test.go | ||
| helper.go | ||
| helper_test.go | ||
| response.go | ||
| response_test.go | ||
| Taskfile.yml | ||