• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / feed-master / 19907374854

03 Dec 2025 08:11PM UTC coverage: 74.538% (+0.01%) from 74.524%
19907374854

push

github

paskal
migrate from go-chi to go-pkgz/routegroup and replace tollbooth with rest.Throttle

Replace go-chi/chi router with go-pkgz/routegroup which wraps the standard library
http.ServeMux and provides middleware support. Replace tollbooth rate limiter with
rest.Throttle from go-pkgz/rest. Also replace pkg/errors with standard fmt.Errorf
using %w for error wrapping.

Key changes:
- Router: chi.NewRouter() → routegroup.New(http.NewServeMux())
- URL params: chi.URLParam(r, "name") → r.PathValue("name")
- Route patterns: r.Get("/path/{name}") → r.HandleFunc("GET /path/{name}", handler)
- Rate limiting: tollbooth → rest.Throttle(N)
- Timeout: chi middleware.Timeout → http.TimeoutHandler
- Errors: errors.Wrap/Wrapf → fmt.Errorf with %w

41 of 89 new or added lines in 11 files covered. (46.07%)

1411 of 1893 relevant lines covered (74.54%)

10.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.89
/app/api/server.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc