sonic.go (695B)
1 // Copyright 2022 Gin Core Team. All rights reserved. 2 // Use of this source code is governed by a MIT style 3 // license that can be found in the LICENSE file. 4 5 //go:build sonic && avx && (linux || windows || darwin) && amd64 6 7 package json 8 9 import "github.com/bytedance/sonic" 10 11 var ( 12 json = sonic.ConfigStd 13 // Marshal is exported by gin/json package. 14 Marshal = json.Marshal 15 // Unmarshal is exported by gin/json package. 16 Unmarshal = json.Unmarshal 17 // MarshalIndent is exported by gin/json package. 18 MarshalIndent = json.MarshalIndent 19 // NewDecoder is exported by gin/json package. 20 NewDecoder = json.NewDecoder 21 // NewEncoder is exported by gin/json package. 22 NewEncoder = json.NewEncoder 23 )