Releases: labstack/echo
Releases · labstack/echo
v1.4.2
v2.0.0
v1.4.1
v2.0.0-beta.2
v1.4
v2.0.0-beta.1
Fixed recover and gzip middleware Signed-off-by: Vishal Rana <[email protected]>
v2.0.0-apha.2
GAE fix Signed-off-by: Vishal Rana <[email protected]>
2.0.0-apha.1
Fixed test cases Signed-off-by: Vishal Rana <[email protected]>
2.0.0-alpha
package main
import (
"github.com/labstack/echo"
"github.com/labstack/echo/engine"
mw "github.com/labstack/echo/middleware"
)
func main() {
e := echo.New()
// e.SetEngine(engine.FastHTTP)
e.Use(mw.Log())
e.Get("/", func(c echo.Context) error {
return c.String(200, "Hello, World!")
})
e.Get("/v2", func(c echo.Context) error {
return c.String(200, "Echo v2")
})
e.Run(":4444")
}
v1.3
Echo v1.3
- Support for
golang.org/x/net/context
- Logging with option to set prefix, output and levels.
Echo#SetLogPrefix()
Echo#SetLogOutput()
Echo#SetLogLevel()
Echo#Hook
Registers a callback to alter request/response objects even before it hits the router or any middleware.Echo#Hook()
Echo#AutoIndex()
- Enables/disables automatically creating an index page for the directory.Context#Path()
- Returns the registered path for a handler, it can be used in the middleware for logging purpose.Context#JSONIndent()
- JSON response with indentation.Context#XMLIndent
- XML response with indentation.Context#Echo()
- Returns theEcho
instance.- Dropped API
Echo#StripTrailingSlash()
- UseEcho#Hook()
- Refactored API
Context#String()
- Dropped Printf, an option argument.Context#HTML()
- Dropped Printf, an optional argument.
- Recipes
- Community Packages
- Updated docs
- Closed many PRs and issues (v1.2.0...v1.3).