Releases: xgfone/ship
Releases · xgfone/ship
v1.2.0
- Context: Add the method
StatusCode()
to acquire the status code of the response. - Middleware:
Logger
logs the status code of the response. - Utility: Add the fucntion
SetDefaultForStruct
to initialize the default of the field of the struct. - Other:
- Fix README.md.
v1.1.0
- Use
github.com/xgfone/go-tools
instead of the sub-packageutils
. - Use
go.mod
ordep
to control the dependency. - Add the route
Redirect
. - Rename the configuration option
SetKeepTrailingSlashPath
toKeepTrailingSlashPath
,SetEnableCtxHTTPContext
toEnableCtxHTTPContext
. - Add the configuration option
DisableErrorLog
. - Change: the registered shutdown function will be called by the reversed added order.
- Change: the
Recover
middleware will ignore the argument, which does not remove it in order to keep the backward compatibility. - Change: the
Logger
middleware will output the log as theERROR
level when an error is returned. - Update:
BindMapToStruct
allow the emptynil
andSetValue
supports the map type.