diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 445192d..0c9cdb6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-24.04-arm, windows-2025, macos-26] - go: [1.23.x, 1.24.x, 1.25.x] + go: [1.24.x, 1.25.x, 1.26.x] continue-on-error: true steps: - name: Checkout source @@ -20,6 +20,6 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9 with: - version: v2.2.2 + version: v2.9.0 - name: Test run: go test -v ./... diff --git a/README.md b/README.md index 2f9bc05..44470a4 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,10 @@ While code generation from an API specification is often preferred, this package - **Framework Agnostic:** Works with the standard `net/http` library and can be easily integrated with popular frameworks like Chi, Gorilla Mux, and Gin. - **Customizable:** Allows overriding default behaviors for path parameter extraction and query parsing. +## Requirements + +Golang 1.24+ is required. + ## Installation ```sh diff --git a/go.mod b/go.mod index b9566c3..549f3e9 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module go.expect.digital/request -go 1.23 +go 1.24 diff --git a/request_test.go b/request_test.go index 74fc371..bf16d5e 100644 --- a/request_test.go +++ b/request_test.go @@ -610,7 +610,7 @@ func BenchmarkDecode(b *testing.B) { r := httptest.NewRequest(http.MethodGet, "/?value=one,two,three&deep[ok]=1", nil) - for range b.N { + for b.Loop() { err = Decode(r, &req) }