From 84f0231a5317db22d7bf17baa964a96ba921a8a5 Mon Sep 17 00:00:00 2001 From: Erik Dubbelboer Date: Thu, 20 Feb 2025 19:01:50 +0900 Subject: [PATCH] Drop support for Go 1.21, add support for 1.24 (#1959) --- .github/workflows/lint.yml | 4 ++-- .github/workflows/test.yml | 2 +- README.md | 2 +- go.mod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c9f544c..7f81b76 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,10 +20,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20.x + go-version: 1.24.x - run: go version - name: Run golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.61.0 + version: v1.64.5 args: --verbose diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ab885b..d1ba4d2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.21.x, 1.22.x, 1.23.x] + go-version: [1.22.x, 1.23.x, 1.24.x] os: [ubuntu-latest, macos-latest, windows-latest, macos-14] runs-on: ${{ matrix.os }} steps: diff --git a/README.md b/README.md index 9c7491f..035f78a 100644 --- a/README.md +++ b/README.md @@ -602,7 +602,7 @@ This is an **unsafe** way, the result string and `[]byte` buffer share the same * *Which GO versions are supported by fasthttp?* - Go 1.21.x and newer. Older versions might work, but won't officially be supported. + Go 1.22.x and newer. Older versions might work, but won't officially be supported. * *Please provide real benchmark data and server information* diff --git a/go.mod b/go.mod index 00c4e97..b47dd4d 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/valyala/fasthttp -go 1.21 +go 1.22 require ( github.com/andybalholm/brotli v1.1.1