### Basic Echo Server Setup Source: https://echo.labstack.com This snippet shows how to create a new Echo instance, define a root GET route that returns a JSON response, and start the server on port 1323. ```go package main import "github.com/labstack/echo/v5" func main() { e := echo.New() e.GET("/", func(c *echo.Context) error { return c.JSON(200, echo.Map{"message": "Hello, World!"}) }) e.Start(":1323") } ``` -------------------------------- ### Basic Echo Route Registration and Start Source: https://echo.labstack.com This snippet illustrates the core steps of creating an Echo instance, registering a simple GET route, and starting the server. ```go e := echo.New() e.GET(”/”, hello) e.Start(":1323") ``` -------------------------------- ### Install Echo Framework Source: https://echo.labstack.com Use this command to add the Echo framework to your Go module dependencies. ```bash go get github.com/labstack/echo/v5 ``` -------------------------------- ### Testing Echo Server Response Source: https://echo.labstack.com This example demonstrates how to test the running Echo server by making a curl request to the root path and shows the expected HTTP response. ```bash $ curl localhost:1323 ``` HTTP/1.1 200 OK · 0 allocations { "message": "Hello, World!" } ``` -------------------------------- ### Run Echo Application Source: https://echo.labstack.com This command shows how to execute your Go application after setting up Echo. ```bash go run main.go ⇨ :1323 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.