github.com/hellobchain/third_party@v0.0.0-20230331131523-deb0478a2e52/gin/internal/json/jsoniter.go (about) 1 // Copyright 2017 Bo-Yi Wu. 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 jsoniter 6 // +build jsoniter 7 8 package json 9 10 import jsoniter "github.com/json-iterator/go" 11 12 var ( 13 json = jsoniter.ConfigCompatibleWithStandardLibrary 14 // Marshal is exported by gin/json package. 15 Marshal = json.Marshal 16 // Unmarshal is exported by gin/json package. 17 Unmarshal = json.Unmarshal 18 // MarshalIndent is exported by gin/json package. 19 MarshalIndent = json.MarshalIndent 20 // NewDecoder is exported by gin/json package. 21 NewDecoder = json.NewDecoder 22 // NewEncoder is exported by gin/json package. 23 NewEncoder = json.NewEncoder 24 )