Skip to content

Echo

Echo v5.2 — now released

Build fast Go APIs.
Without the bloat.

A high-performance, minimalist Go web framework — a zero-allocation router, batteries-included middleware, and an expressive API. Ship production services in minutes.

32.5kGitHub stars
0 allocsrouter, per request
25+built-in middlewares
MITopen source license
Why Echo

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, with validation.

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.

Get Started

A running server in three steps.

01

Install

Add Echo to your module.

go get github.com/labstack/echo/v5
02

Write

Register a route.

e := echo.New()
e.GET(”/”, hello)
e.Start(":1323")
03

Run

Start serving.

go run main.go
⇨ :1323
Ecosystem

Official packages, ready to plug in.

Sponsors

Backed by teams who build on Echo.

EncoreEncoreThe platform for building Go-based cloud backends.
echo

High performance, extensible, minimalist Go web framework.