mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 19:45:28 +00:00
* chore: fix non-constant fmt string in call Signed-off-by: Dwi Siswanto <git@dw1.io> * build: bump all direct modules Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(hosterrorscache): update import path Signed-off-by: Dwi Siswanto <git@dw1.io> * fix(charts): break changes Signed-off-by: Dwi Siswanto <git@dw1.io> * build: pinned `github.com/zmap/zcrypto` to v0.0.0-20240512203510-0fef58d9a9db Signed-off-by: Dwi Siswanto <git@dw1.io> * chore: golangci-lint auto fixes Signed-off-by: Dwi Siswanto <git@dw1.io> * chore: satisfy lints Signed-off-by: Dwi Siswanto <git@dw1.io> * build: migrate `github.com/xanzy/go-gitlab` => `gitlab.com/gitlab-org/api/client-go` Signed-off-by: Dwi Siswanto <git@dw1.io> * feat(json): update build constraints Signed-off-by: Dwi Siswanto <git@dw1.io> * chore: dont panicking on close err Signed-off-by: Dwi Siswanto <git@dw1.io> --------- Signed-off-by: Dwi Siswanto <git@dw1.io>
30 lines
645 B
Go
30 lines
645 B
Go
//go:build (linux || darwin || windows) && (amd64 || arm64)
|
|
// +build linux darwin windows
|
|
// +build amd64 arm64
|
|
|
|
package json
|
|
|
|
import "github.com/bytedance/sonic"
|
|
|
|
var api = sonic.ConfigStd
|
|
|
|
// Exported functions from the [sonic.API].
|
|
var (
|
|
Marshal = api.Marshal
|
|
Unmarshal = api.Unmarshal
|
|
MarshalIndent = api.MarshalIndent
|
|
NewDecoder = api.NewDecoder
|
|
NewEncoder = api.NewEncoder
|
|
)
|
|
|
|
// Encoder is a JSON encoder.
|
|
type Encoder = sonic.Encoder
|
|
|
|
// Decoder is a JSON decoder.
|
|
type Decoder = sonic.Decoder
|
|
|
|
// SetConfig sets the configuration for the JSON package.
|
|
func SetConfig(config *sonic.Config) {
|
|
api = config.Froze()
|
|
}
|