Skip to content

Commit

Permalink
build: update minimum Go version to 1.19
Browse files Browse the repository at this point in the history
- Update the Go version support in GitHub Actions workflow from `1.18, 1.19, "1.20", 1.21, 1.22` to `1.19, "1.20", 1.21, 1.22`
- Add a "Requirement" section in the README stating the requirement for Go **1.19** or later
- Update the Go version in `go.mod` from `1.18` to `1.19`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Mar 1, 2024
1 parent 35a621a commit 6ad826e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.18, 1.19, "1.20", 1.21, 1.22]
go: [1.19, "1.20", 1.21, 1.22]
include:
- os: ubuntu-latest
go-build: ~/.cache/go-build
Expand Down
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -7,6 +7,10 @@

Alternative logging through [zap](https://github.com/uber-go/zap). Thanks for [Pull Request](https://github.com/gin-gonic/contrib/pull/129) from [@yezooz](https://github.com/yezooz)

## Requirement

Require Go **1.19** or later.

## Usage

### Start using it
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/gin-contrib/zap

go 1.18
go 1.19

require (
github.com/gin-gonic/gin v1.9.1
Expand Down

0 comments on commit 6ad826e

Please sign in to comment.