- Updated Readme
- Updated Logger
- Added a new logging interface
- Updated tests to cover more code
- Updated responses to use constants defined in Go's http standard library instead of using integers for respective HTTP response codes
- Updated Readme
- Updated Middleware
- Backward incompatible updates
- CORS middleware functions are updated and now accepts list of supported/allowed domains
- The middleware functions will default to "*" if no domains are passed to the functions
- 501 response for unsupported HTTP methods
- Fixed the long standing invalid http status code bug
- Fixed bug in access-log middleware which caused invalid HTTP status code
- Updated docs with all latest updates
- Graceful shutdown added
- Updated readme with details of how to use the shutdown
- Updated Readme to include godoc badge
- Renamed
middlewares
tomiddleware
- Initializing
AppContext
in NewRouter to avoid nil pointer assignment
-
Log levels
- Error logs are now printed to
os.Stderr
with a prefixError
- Info logs are now printed to
os.Stdout
with a prefixInfo
- Warning logs are now printed to
os.Stdout
with a prefixWarning
- Error logs are now printed to
-
Removed per route access log control
-
Removed AccessLog option from router
-
Globals
is now removed, and router holds the app context now -
Removed templates, as it can just be added to Globals' app context (
App
which is a map[string]interface{}) -
Removed configuration
HTTPSOnly
as it can be started by callingStartHTTPS
-
Read and write timeout are now added in configuration instead of passing to Start
-
Start
&StartHTTPS
are now methods of router