setup echo
This commit is contained in:
parent
0f34300a8a
commit
2d6f19580c
4 changed files with 155 additions and 207 deletions
15
server.go
Normal file
15
server.go
Normal 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"))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue