mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 02:25:25 +00:00
* perf(*): replace `encoding/json` w/ sonic Signed-off-by: Dwi Siswanto <git@dw1.io> * feat(utils): add `json` pkg (sonic wrapper) Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(*): use `sonic` wrapper instead Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(*): replace `sonic.ConfigStd` -> `json` (wrapper) Signed-off-by: Dwi Siswanto <git@dw1.io> * test(model): adjust expected marshal'd JSON Signed-off-by: Dwi Siswanto <git@dw1.io> * feat(json): dynamic backend; `sonic` -> `go-json` (fallback) Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(json): merge config - as its not usable Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(json): rm go version constraints Signed-off-by: Dwi Siswanto <git@dw1.io> * chore: go mod tidy Signed-off-by: Dwi Siswanto <git@dw1.io> --------- Signed-off-by: Dwi Siswanto <git@dw1.io>
22 lines
498 B
Go
22 lines
498 B
Go
//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
|