Examples
Stable v1.5.0
Migrate from Echo
Introduce EchoNext typed routes incrementally in an existing Echo service.
Migrate from Echo
EchoNext is designed for incremental adoption.
- Create the EchoNext application where the existing Echo instance is initialized.
- Keep current middleware, groups, error handling, and standard handlers.
- Choose one JSON endpoint with a clear request and response contract.
- Extract named request and response structs.
- Convert manual binding and validation into a typed handler signature.
- Register route metadata and compare the generated OpenAPI operation with current behavior.
- Add HTTP-level tests before converting another route.
Do not migrate streaming or unusually dynamic endpoints merely for consistency. Typed and standard handlers can remain side by side.
Stable v1.5.0 targets Echo v5, and typed handlers take *echo.Context. Services still on Echo v4 should pin EchoNext v1.4.8 until the Echo upgrade is done, since the handler signature changed in v1.5.0.