Gin v1.0.rc1 Release Notes
Release Date: 2015-05-22 // almost 9 years ago-
- ๐ [PERFORMANCE] Zero allocation router
- ๐ [PERFORMANCE] Faster JSON, XML and text rendering
- ๐ [PERFORMANCE] Custom hand optimized HttpRouter for Gin
- ๐ [PERFORMANCE] Misc code optimizations. Inlining, tail call optimizations
- ๐ [NEW] Built-in support for golang.org/x/net/context
- [NEW] Any(path, handler). Create a route that matches any path
- ๐จ [NEW] Refactored rendering pipeline (faster and static typeded)
- ๐จ [NEW] Refactored errors API
- ๐จ [NEW] IndentedJSON() prints pretty JSON
- 0๏ธโฃ [NEW] Added gin.DefaultWriter
- ๐ [NEW] UNIX socket support
- [NEW] RouterGroup.BasePath is exposed
- [NEW] JSON validation using go-validate-yourself (very powerful options)
- โ [NEW] Completed suite of unit tests
- [NEW] HTTP streaming with c.Stream()
- [NEW] StaticFile() creates a router for serving just one file.
- [NEW] StaticFS() has an option to disable directory listing.
- [NEW] StaticFS() for serving static files through virtual filesystems
- ๐ [NEW] Server-Sent Events native support
- [NEW] WrapF() and WrapH() helpers for wrapping http.HandlerFunc and http.Handler
- [NEW] Added LoggerWithWriter() middleware
- [NEW] Added RecoveryWithWriter() middleware
- 0๏ธโฃ [NEW] Added DefaultPostFormValue()
- 0๏ธโฃ [NEW] Added DefaultFormValue()
- 0๏ธโฃ [NEW] Added DefaultParamValue()
- [FIX] BasicAuth() when using custom realm
- [FIX] Bug when serving static files in nested routing group
- [FIX] Redirect using built-in http.Redirect()
- ๐จ [FIX] Logger when printing the requested path
- ๐ [FIX] Documentation typos
- [FIX] Context.Engine renamed to Context.engine
- ๐ [FIX] Better debugging messages
- [FIX] ErrorLogger
- [FIX] Debug HTTP render
- ๐จ [FIX] Refactored binding and render modules
- ๐จ [FIX] Refactored Context initialization
- ๐จ [FIX] Refactored BasicAuth()
- [FIX] NoMethod/NoRoute handlers
- [FIX] Hijacking http
- ๐ฒ [FIX] Better support for Google App Engine (using log instead of fmt)