Package echo implements high performance, minimalist Go web framework.

Example:

   package main

import (
"github.com/labstack/echo/v5"
"github.com/labstack/echo/v5/middleware"
"log"
"net/http"
)

// Handler
func hello(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
}

func main() {
// Echo instance
e := echo.New()

// Middleware
e.Use(middleware.Logger())
e.Use(middleware.Recover())

// Routes
e.GET("/", hello)

// Start server
if err := e.Start(":8080"); err != http.ErrServerClosed {
log.Fatal(err)
}
}

Learn more at https://echo.labstack.com

Index

Interfaces

Generated using TypeDoc