1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-25 21:38:56 +02:00
echo/examples/google-app-engine/app-standalone.go
Vishal Rana 63262b2311 Recipes => examples
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-09 20:23:57 -08:00

25 lines
349 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.Static("/", "public")
return e
}
func main() {
e.Logger.Fatal(e.Start(":8080"))
}