summaryrefslogtreecommitdiff
path: root/vendor/github.com/bytedance/sonic/sonic.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-03-11 10:12:06 +0000
committerLibravatar GitHub <noreply@github.com>2024-03-11 10:12:06 +0000
commite24efcac8b67baa9454bf27631e5e49f898a88d4 (patch)
treed9adec2f05e1d8714edee66062a4b95a81ee2a61 /vendor/github.com/bytedance/sonic/sonic.go
parent[bugfix] Fix whitespace move_id issue (#2742) (diff)
downloadgotosocial-e24efcac8b67baa9454bf27631e5e49f898a88d4.tar.xz
[chore]: Bump github.com/gin-contrib/cors from 1.5.0 to 1.7.0 (#2745)
Diffstat (limited to 'vendor/github.com/bytedance/sonic/sonic.go')
-rw-r--r--vendor/github.com/bytedance/sonic/sonic.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/github.com/bytedance/sonic/sonic.go b/vendor/github.com/bytedance/sonic/sonic.go
index 1da238895..145527fc0 100644
--- a/vendor/github.com/bytedance/sonic/sonic.go
+++ b/vendor/github.com/bytedance/sonic/sonic.go
@@ -1,4 +1,4 @@
-// +build amd64,go1.16,!go1.22
+// +build amd64,go1.16,!go1.23
/*
* Copyright 2021 ByteDance Inc.
@@ -61,6 +61,9 @@ func (cfg Config) Froze() API {
if cfg.NoValidateJSONMarshaler {
api.encoderOpts |= encoder.NoValidateJSONMarshaler
}
+ if cfg.NoEncoderNewline {
+ api.encoderOpts |= encoder.NoEncoderNewline
+ }
// configure decoder options:
if cfg.UseInt64 {