Skip to content
Pro

Echo

Build fast Go APIs.
Without the bloat.

A high-performance, minimalist Go web framework with a zero-allocation router, batteries-included middleware and an expressive API.

go get github.com/labstack/echo/v5

Building a multi-tenant API? Echo Pro adds API keys, tenant isolation, quotas and signed webhooks.

server.go · excerpt
e := echo.New()
// Middleware
e.Use(middleware.RequestLogger())
e.Use(middleware.Recover())
// Route => handler
e.GET("/", func(c *echo.Context) error {
return c.String(http.StatusOK, "Hello, World!\n")
})

Built on Echo

See all adopters
32.8kGitHub stars
0 allocsrouter, per request
25+built-in middlewares
MITopen source license

Everything you need. Nothing you don’t.

Optimized Router

Radix-tree routing with zero dynamic allocation and smart route prioritization.

Batteries-included Middleware

CORS, JWT, rate-limit, gzip, recover, request logging — 25+ built in.

Data Binding

Bind JSON, XML, form, query & path params into typed structs.
var u User
if err := c.Bind(&u); err != nil {
return err
}

Automatic TLS

HTTPS out of the box via Let’s Encrypt, plus HTTP/2 support.

Extensible

Composable middleware and a clean, minimal interface for total control.

Templates

Plug in any Go template engine for fast, flexible HTML rendering.

A running server in three steps.

  1. Install

    Create a module and add Echo.

    go mod init myapp
    go get github.com/labstack/echo/v5
  2. Write

    The core of server.go. Copy the full Hello World example for the imports and main.

    e := echo.New()
    // Middleware
    e.Use(middleware.RequestLogger())
    e.Use(middleware.Recover())
    // Route => handler
    e.GET("/", func(c *echo.Context) error {
    return c.String(http.StatusOK, "Hello, World!\n")
    })
  3. Run

    Fetch dependencies and start serving on port 1323.

    go mod tidy
    go run server.go

Official packages, ready to plug in.

Backed by teams who build on Echo.

Echo stays MIT. Echo Pro is a separate commercial library that funds it.

Production building blocks for teams running multi-tenant APIs on Echo v5.

Site links

echo

High performance, extensible, minimalist Go web framework.