server run

This commit is contained in:
alessio 2016-09-02 00:35:31 +02:00
parent 8c269b0c2f
commit 0e83ef7bae

15
server/main.go Normal file
View File

@ -0,0 +1,15 @@
package server
import (
"github.com/labstack/echo"
"github.com/labstack/echo/engine/standard"
"net/http"
)
func init() {
e := echo.New()
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hi Realize")
})
go e.Run(standard.New(":5000"))
}