用户登录和接口鉴权
This commit is contained in:
15
vendor/github.com/bytedance/sonic/sonic.go
generated
vendored
15
vendor/github.com/bytedance/sonic/sonic.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build (amd64 && go1.17 && !go1.26) || (arm64 && go1.20 && !go1.26)
|
||||
// +build amd64,go1.17,!go1.26 arm64,go1.20,!go1.26
|
||||
// +build amd64,go1.16,!go1.23
|
||||
|
||||
/*
|
||||
* Copyright 2021 ByteDance Inc.
|
||||
@@ -17,6 +16,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
//go:generate make
|
||||
package sonic
|
||||
|
||||
import (
|
||||
@@ -29,8 +29,6 @@ import (
|
||||
`github.com/bytedance/sonic/internal/rt`
|
||||
)
|
||||
|
||||
const apiKind = UseSonicJSON
|
||||
|
||||
type frozenConfig struct {
|
||||
Config
|
||||
encoderOpts encoder.Options
|
||||
@@ -66,14 +64,8 @@ func (cfg Config) Froze() API {
|
||||
if cfg.NoEncoderNewline {
|
||||
api.encoderOpts |= encoder.NoEncoderNewline
|
||||
}
|
||||
if cfg.EncodeNullForInfOrNan {
|
||||
api.encoderOpts |= encoder.EncodeNullForInfOrNan
|
||||
}
|
||||
|
||||
// configure decoder options:
|
||||
if cfg.NoValidateJSONSkip {
|
||||
api.decoderOpts |= decoder.OptionNoValidateJSON
|
||||
}
|
||||
if cfg.UseInt64 {
|
||||
api.decoderOpts |= decoder.OptionUseInt64
|
||||
}
|
||||
@@ -89,9 +81,6 @@ func (cfg Config) Froze() API {
|
||||
if cfg.ValidateString {
|
||||
api.decoderOpts |= decoder.OptionValidateString
|
||||
}
|
||||
if cfg.CaseSensitive {
|
||||
api.decoderOpts |= decoder.OptionCaseSensitive
|
||||
}
|
||||
return api
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user