We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@pkieltyka, the author https://github.com/go-chi/chi/issues/375#issuecomment-452393057 said:
The context key's are actually a unique object with an underlying string value. This is by design to prevent collisions with other packages, specifically this value: https://github.com/go-chi/chi/blob/master/context.go#L12.
You'll want to update use ctx.Value(chi.RouteCtxKey).(*chi.Context) but even easier is to do routeCtx := chi.RouteContext(ctx).
ctx.Value(chi.RouteCtxKey).(*chi.Context)
routeCtx := chi.RouteContext(ctx)
abc