Go framework for production APIs

Performance-first Go web framework with production batteries.

elgon stays close to net/http but ships with Spring Boot-like readiness: health, metrics, config, auth, and OpenAPI.

Fast routerLow allocationsProduction defaultsModular

router ns/op

350

allocs/op

3

throughput

1.2M

Quick Start

app := elgon.New(elgon.Config{Addr: ":8080"})
app.Use(middleware.Recover(), middleware.RequestID())
app.GET("/health", func(c *elgon.Ctx) error {
  return c.JSON(200, map[string]string{"status": "ok"})
})
log.Fatal(app.Run())

Why elgon

Built for teams that care about latency and operability.

Performance-first core

A low-overhead router and middleware pipeline tuned for stable latency under load.

Production readiness

Health, metrics, secure defaults, and config validation ship as first-party modules.

Modular architecture

Adopt auth, OpenAPI, jobs, and migrations independently as your system evolves.

Testability

Composable interfaces and predictable request flow make handlers and services easy to test.

Feature set

Everything needed to ship and run APIs in production.

01

Core HTTP & Routing

02

Middleware

03

Errors

04

Validation & Binding

05

Auth

06

Observability

07

Config

08

DB + Migrations

09

Jobs

10

OpenAPI

11

CLI

12

Testing

13

Security Defaults

14

Benchmarks Module

Benchmarks

Benchmarks are a first-class module, not a side note.

Keep regression checks in your CI and compare route latency, allocations, and throughput over time.

Allocations / op

3 allocs

Router ns / op

350 ns

Throughput

1.2M req/min

Quick start

Install and run in minutes.

go get github.com/meshackkazimoto/elgon@v0.1.0

Production readiness

Spring Boot-like defaults for operations.

  • Health endpoints: /health, /ready, /live
  • Metrics endpoint: /metrics
  • Structured logging
  • Graceful shutdown defaults
  • OpenTelemetry tracing hooks
  • Config validation before startup
  • Security headers, body limits, CORS defaults

Ecosystem

Integrates with the tooling your team already runs.

  • DB adapters: pgx, mysql, sqlite
  • Prometheus and OpenTelemetry
  • Redis queue integration
  • Swagger UI
  • Docker and Kubernetes ready

Start building

Build fast APIs with elgon.