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)