From 7ba65f52415488f849af325e79b3217a79b6ef5d Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 28 Aug 2024 23:06:05 +0800 Subject: [PATCH] chore: update Go version to 1.20 and above in workflows - Update the Go versions in the workflow from 1.18 and 1.19 to only include 1.20, 1.21, 1.22, and 1.23 - Change the Go version in the go.mod file from 1.18 to 1.20 Signed-off-by: Bo-Yi Wu --- .github/workflows/go.yml | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cfc0222..cdd4e51 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -30,7 +30,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - go: [1.18, 1.19, "1.20", 1.21, 1.22] + go: ["1.20", 1.21, 1.22, 1.23] include: - os: ubuntu-latest go-build: ~/.cache/go-build diff --git a/go.mod b/go.mod index 4901557..3d90789 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/gin-contrib/cors -go 1.18 +go 1.20 require ( github.com/gin-gonic/gin v1.10.0