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

-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) {