Bump Go to 1.23 (#1832)

This commit is contained in:
David Pedersen authored and GitHub committed 2024-11-04 18:01:08 +11:00
1 parent fa2fa19ab0
commit b5b7b84568
4 files changed
+6 -22

No files matched your search

+4 -4
View File
@@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.18"
go-version: "1.23"
- name: Build
run: go build -v ./...
@@ -31,7 +31,7 @@ jobs:
- uses: dominikh/staticcheck-action@v1.3.1
with:
version: "2022.1.3"
version: "2024.1.1"
install-go: false
cross-compile:
@@ -44,7 +44,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.18"
go-version: "1.23"
- name: Cross-compile on all supported platforms
run: gen/xbuild.sh
@@ -59,7 +59,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.18"
go-version: "1.23"
- name: Test `go fmt` creates no diffs
run: go fmt && git diff --exit-code
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.18"
go-version: "1.23"
- name: Build
run: gen/xbuild.sh
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/gokcehan/lf
go 1.18
go 1.23
require (
github.com/Xuanwo/go-locale v1.1.2
-16
View File
@@ -335,22 +335,6 @@ var (
reWordEnd = regexp.MustCompile(`(\pL|\pN)([^\pL\pN]|$)`)
)
// TODO: Remove when bumping to Go 1.21+
func min(a, b int) int {
if a < b {
return a
}
return b
}
// TODO: Remove when bumping to Go 1.21+
func max(a, b int) int {
if a > b {
return a
}
return b
}
// This function parses given locale string into language tag value. Passing empty
// string as locale means reading locale value from environment.
func getLocaleTag(localeStr string) (language.Tag, error) {