Skip to content

Replace go-chi with go-pkgz/routegroup#38

Merged
umputun merged 1 commit intoumputun:masterfrom
paskal:replace-chi-with-routegroup
Dec 3, 2025
Merged

Replace go-chi with go-pkgz/routegroup#38
umputun merged 1 commit intoumputun:masterfrom
paskal:replace-chi-with-routegroup

Conversation

@paskal
Copy link
Contributor

@paskal paskal commented Dec 3, 2025

Summary

  • Replace go-chi/chi router with go-pkgz/routegroup using Go 1.22+ native routing patterns
  • Remove tollbooth rate limiter in favor of rest.Throttle
  • Replace chi.URLParam() with r.PathValue() for path parameters
  • Replace render.JSON/HTML with rest.RenderJSON and direct writes
  • Update golangci-lint config to v2 format
  • Update all dependencies to latest versions

This reduces external dependencies and leverages Go's built-in routing capabilities.

@paskal paskal force-pushed the replace-chi-with-routegroup branch from 9cd924a to 9f6b5d1 Compare December 3, 2025 15:07
Switch from go-chi/chi router to go-pkgz/routegroup using Go 1.22+ native
routing patterns. Remove tollbooth rate limiter in favor of rest.Throttle.

- Replace chi.Router with routegroup.Bundle
- Use r.PathValue() instead of chi.URLParam() for path parameters
- Replace render.JSON/HTML with rest.RenderJSON and direct writes
- Remove chi middleware, use rest package equivalents
- Update golangci-lint config to v2 format
- Update all dependencies to latest versions
@paskal paskal force-pushed the replace-chi-with-routegroup branch from 9f6b5d1 to 1a2541a Compare December 3, 2025 15:19
@umputun umputun merged commit 12b2559 into umputun:master Dec 3, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants