nuclei/pkg/utils/json/json_fallback.go

22 lines
497 B
Go
Raw Normal View History

//go:build !(linux || darwin || windows) || !(amd64 || arm64)
// +build !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