From 439640343dd2c77d1379b350048a269f64743265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E6=9D=91=E9=BE=8D=E5=A4=AA?= Date: Tue, 21 Oct 2025 02:05:34 +0900 Subject: [PATCH] docs: clarify With() middleware comment --- chi.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chi.go b/chi.go index f650116a..d434bc48 100644 --- a/chi.go +++ b/chi.go @@ -70,7 +70,8 @@ type Router interface { // Use appends one or more middlewares onto the Router stack. Use(middlewares ...func(http.Handler) http.Handler) - // With adds inline middlewares for an endpoint handler. + // With adds inline middlewares for an endpoint handler, + // applying them only to the specific route(s) defined on it. With(middlewares ...func(http.Handler) http.Handler) Router // Group adds a new inline-Router along the current routing