1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-01 22:09:21 +02:00
echo/recipe/google-app-engine/app-standalone.go
Vishal Rana 17c8b8f2ea logger new api, updated recipes
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-10-23 13:37:04 -07:00

27 lines
393 B
Go

// +build !appengine,!appenginevm
package main
import (
"github.com/labstack/echo"
"github.com/labstack/echo/middleware"
)
func createMux() *echo.Echo {
e := echo.New()
e.Use(middleware.Recover())
e.Use(middleware.Logger())
e.Use(middleware.Gzip())
e.Use(middleware.Static("public"))
return e
}
func main() {
if err := e.Start(":8080"); err != nil {
e.Logger.Fatal(err)
}
}