fix(json): update build constraints for Go version comp (#6064)

Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
Dwi Siswanto 2025-02-21 13:34:04 +07:00 committed by GitHub
parent cbd90df51c
commit 047d49f6f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 5 deletions

View File

@ -1,8 +1,8 @@
// Package json provides fast JSON encoding and decoding functionality. // Package json provides fast JSON encoding and decoding functionality.
// //
// On supported platforms; Linux, Darwin, or Windows on amd64, or on arm64 with // On supported platforms; Linux, Darwin, or Windows on amd64, or on arm64 with
// Go 1.20 or later, the package uses the high-performance [sonic] library. On // Go >= 1.20 and <= 1.23, the package uses the high-performance [sonic] library.
// any other systems, it gracefully falls back to using the [go-json] // On any other systems, it gracefully falls back to using the [go-json]
// implementation. // implementation.
// //
// This package acts as a wrapper around the underlying JSON APIs, offering // This package acts as a wrapper around the underlying JSON APIs, offering

View File

@ -1,4 +1,5 @@
//go:build (linux || darwin || windows) && (amd64 || arm64) //go:build !go1.24 && (linux || darwin || windows) && (amd64 || arm64)
// +build !go1.24
// +build linux darwin windows // +build linux darwin windows
// +build amd64 arm64 // +build amd64 arm64

View File

@ -1,5 +1,5 @@
//go:build !((linux || darwin || windows) && (amd64 || arm64)) //go:build go1.24 || !(linux || darwin || windows) || !(amd64 || arm64)
// +build !linux,!darwin,!windows !amd64,!arm64 // +build go1.24 !linux,!darwin,!windows !amd64,!arm64
package json package json