summaryrefslogtreecommitdiff
path: root/vendor/github.com/bytedance/sonic/encoder/encoder_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/bytedance/sonic/encoder/encoder_amd64.go')
-rw-r--r--vendor/github.com/bytedance/sonic/encoder/encoder_amd64.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/vendor/github.com/bytedance/sonic/encoder/encoder_amd64.go b/vendor/github.com/bytedance/sonic/encoder/encoder_amd64.go
index fa107c73f..e93b09a25 100644
--- a/vendor/github.com/bytedance/sonic/encoder/encoder_amd64.go
+++ b/vendor/github.com/bytedance/sonic/encoder/encoder_amd64.go
@@ -1,4 +1,4 @@
-// +build amd64,go1.15,!go1.21
+// +build amd64,go1.16,!go1.22
/*
* Copyright 2023 ByteDance Inc.
@@ -59,6 +59,10 @@ const (
// before encoding it into JSON.
ValidateString Options = encoder.ValidateString
+ // NoValidateJSONMarshaler indicates that the encoder should not validate the output string
+ // after encoding the JSONMarshaler to JSON.
+ NoValidateJSONMarshaler Options = encoder.NoValidateJSONMarshaler
+
// CompatibleWithStd is used to be compatible with std encoder.
CompatibleWithStd Options = encoder.CompatibleWithStd
)
@@ -105,4 +109,4 @@ var (
//
// NewStreamEncoder returns a new encoder that write to w.
NewStreamEncoder = encoder.NewStreamEncoder
-) \ No newline at end of file
+)