migrate-from-chi

command
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

migrate-from-chi example — chi → zip via stdlib adapter.

Use zip.AdaptNetHTTP(chiRouter) to mount an existing chi.Router as a migration step. Replace adapted routes with native zip handlers when feasible; the adapter costs ~5% perf vs native Fiber dispatch.

chi is NOT a dep of this example — we adapt any http.Handler, and a chi.Router satisfies that interface natively.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL