nuclei/pkg/utils/json/json_fallback.go
Dwi Siswanto 047d49f6f3
fix(json): update build constraints for Go version comp (#6064)
Signed-off-by: Dwi Siswanto <git@dw1.io>
2025-02-21 12:04:04 +05:30

22 lines
514 B
Go

//go:build go1.24 || !(linux || darwin || windows) || !(amd64 || arm64)
// +build go1.24 !linux,!darwin,!windows !amd64,!arm64
package json
import "github.com/goccy/go-json"
// Exported functions from the [json] package.
var (
Marshal = json.Marshal
Unmarshal = json.Unmarshal
MarshalIndent = json.MarshalIndent
NewDecoder = json.NewDecoder
NewEncoder = json.NewEncoder
)
// Encoder is a JSON encoder.
type Encoder = json.Encoder
// Decoder is a JSON decoder.
type Decoder = json.Decoder