mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore]: Bump github.com/gin-contrib/gzip from 1.0.1 to 1.1.0 (#3639)
Bumps [github.com/gin-contrib/gzip](https://github.com/gin-contrib/gzip) from 1.0.1 to 1.1.0. - [Release notes](https://github.com/gin-contrib/gzip/releases) - [Changelog](https://github.com/gin-contrib/gzip/blob/master/.goreleaser.yaml) - [Commits](https://github.com/gin-contrib/gzip/compare/v1.0.1...v1.1.0) --- updated-dependencies: - dependency-name: github.com/gin-contrib/gzip dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
11
vendor/github.com/bytedance/sonic/sonic.go
generated
vendored
11
vendor/github.com/bytedance/sonic/sonic.go
generated
vendored
@ -1,4 +1,5 @@
|
||||
// +build amd64,go1.16,!go1.23
|
||||
//go:build (amd64 && go1.17 && !go1.24) || (arm64 && go1.20 && !go1.24)
|
||||
// +build amd64,go1.17,!go1.24 arm64,go1.20,!go1.24
|
||||
|
||||
/*
|
||||
* Copyright 2021 ByteDance Inc.
|
||||
@ -29,6 +30,8 @@ import (
|
||||
`github.com/bytedance/sonic/internal/rt`
|
||||
)
|
||||
|
||||
const apiKind = UseSonicJSON
|
||||
|
||||
type frozenConfig struct {
|
||||
Config
|
||||
encoderOpts encoder.Options
|
||||
@ -64,8 +67,14 @@ 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
|
||||
}
|
||||
|
Reference in New Issue
Block a user