From cfe1771dd12128f5e1b5c15c4a209b483690fcb7 Mon Sep 17 00:00:00 2001 From: Janis Horsts Date: Tue, 10 Feb 2026 22:10:46 +0000 Subject: [PATCH 1/3] chore: bump go to v1.24+ --- .github/workflows/check.yml | 4 ++-- README.md | 4 ++++ go.mod | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 445192d..d232b19 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.8.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 From 2cea3b44079b7f87a640f2401b5df7de14962185 Mon Sep 17 00:00:00 2001 From: Janis Horsts Date: Tue, 10 Feb 2026 22:13:57 +0000 Subject: [PATCH 2/3] fix: pass lint --- request_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } From 6039c266737fbca4e42629c8c22a0fae204019be Mon Sep 17 00:00:00 2001 From: Janis Horsts Date: Wed, 11 Feb 2026 08:12:42 +0000 Subject: [PATCH 3/3] chore: bump golangci-lint to v2.9.0 --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d232b19..0c9cdb6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -20,6 +20,6 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9 with: - version: v2.8.0 + version: v2.9.0 - name: Test run: go test -v ./...