1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-18 02:58:38 +02:00
echo/recipe/google-app-engine/app-standalone.go

25 lines
360 B
Go
Raw Normal View History

// +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() {
e.Logger.Fatal(e.Start(":8080"))
}