Skip to content

Conversation

@jerome-wilson
Copy link

Summary

  • Upgraded Go toolchain to 1.22
  • Upgraded router dependency to chi v5.0.10
  • Add standard chi middleware (RequestID, RealIP, Logger, Recoverer, Timeout)
  • Added test cases (precode_test.go)
    • The unit test covers JSON tags, fixture sanity and marshalling keys
  • Upgraded CI to use Go 1.22 (for test run in the same module version)

Why

  • To avoid Go toolchain mismatch - upgraded to latest
  • Upgraded chi to latest version for compatability
  • Wire up common chi middleware for safer and more observable HTTP handling
    -- prevents crash panics
    -- id assginmets to logs and contexts
    -- resolving client IP headers
    -- added a logger too

NOTE: Timeout set to 15 sec to cancel long running handlers
For any clarification, contact: [email protected]

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.

1 participant