setup echo

This commit is contained in:
XenGi 2023-10-19 18:01:48 +02:00
parent 0f34300a8a
commit 2d6f19580c
Signed by: xengi
SSH key fingerprint: SHA256:EvLbWxFCtfmd+8Xa6RkzkhIga+wFkKCekfFacYVn63M
4 changed files with 155 additions and 207 deletions

15
server.go Normal file
View file

@ -0,0 +1,15 @@
package main
import (
"net/http"
"github.com/labstack/echo/v4"
)
func main() {
e := echo.New()
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
})
e.Logger.Fatal(e.Start(":1323"))
}