Skip to content

Releases: xgfone/ship

v1.2.0

21 Mar 02:38
Compare
Choose a tag to compare
  • 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

07 Mar 09:52
Compare
Choose a tag to compare
  • Use github.com/xgfone/go-tools instead of the sub-package utils.
  • Use go.mod or dep to control the dependency.
  • Add the route Redirect.
  • Rename the configuration option SetKeepTrailingSlashPath to KeepTrailingSlashPath, SetEnableCtxHTTPContext to EnableCtxHTTPContext.
  • 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 the ERROR level when an error is returned.
  • Update: BindMapToStruct allow the empty nil and SetValue supports the map type.

v1.0.0

27 Feb 05:37
Compare
Choose a tag to compare
  • Refactor and simplify the code.
  • Release the first stable version.