Added
OnStart() and OnShutdown() lifecycle hooks for App
- Logger:
EnableColors for colored terminal output
- Logger:
JSONFormat for structured JSON logs
RecoverWithConfig() with custom panic handler
RecoverJSON middleware for JSON error responses
RateLimitConfig.OnLimitReached for custom rate limit responses
- CORS wildcard subdomain support (e.g.,
*.example.com)
Bind() now supports application/x-www-form-urlencoded
Bind() now supports multipart/form-data
Fixed
- Context pool reset ensures all fields cleared between requests
Bind() returns error for empty request body
Bind() checks Content-Type header before parsing
Install
go get github.com/gomarten/marten@v0.1.2