Optimized Router
Radix-tree routing with zero dynamic allocation and smart route prioritization.
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/v5Building a multi-tenant API? Echo Pro adds API keys, tenant isolation, quotas and signed webhooks.
e := echo.New()
// Middlewaree.Use(middleware.RequestLogger())e.Use(middleware.Recover())
// Route => handlere.GET("/", func(c *echo.Context) error { return c.String(http.StatusOK, "Hello, World!\n")})var u Userif err := c.Bind(&u); err != nil { return err}Create a module and add Echo.
go mod init myappgo get github.com/labstack/echo/v5The core of server.go. Copy the full Hello World example for the imports and main.
e := echo.New()
// Middlewaree.Use(middleware.RequestLogger())e.Use(middleware.Recover())
// Route => handlere.GET("/", func(c *echo.Context) error { return c.String(http.StatusOK, "Hello, World!\n")})Fetch dependencies and start serving on port 1323.
go mod tidygo run server.goProduction building blocks for teams running multi-tenant APIs on Echo v5.
High performance, extensible, minimalist Go web framework.