chi

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package chi provides thin adapters for using err-envelope with chi router.

Chi uses standard net/http handlers, so err-envelope works directly. This package exists for discoverability and convenience.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trace

func Trace(next http.Handler) http.Handler

Trace is a convenience wrapper around errenvelope.TraceMiddleware that returns a standard net/http middleware for chi.

Chi can use errenvelope.TraceMiddleware directly; this exists for clarity.

Example:

r := chi.NewRouter()
r.Use(chi.Trace)

Types

This section is empty.

Jump to

Keyboard shortcuts

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