16 lines
270 B
Go
16 lines
270 B
Go
|
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"))
|
||
|
}
|