back

Echo

High performance, minimalist Go web framework

getting started

A sample from a Medium post 1.

go mod init github.com/igorlima/echo-2023a09m04d-21h19
go get github.com/labstack/echo/v4
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(":3000"))
}