Basic web backend and fronted with echo

This commit is contained in:
CronyAkatsuki 2023-12-19 14:04:28 +01:00
parent 6240310747
commit 677ac4f427
3 changed files with 60 additions and 2 deletions

12
main.go
View file

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