jsoniter.go 703 B

123456789101112131415161718192021222324
  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. //go:build jsoniter
  5. // +build jsoniter
  6. package json
  7. import jsoniter "github.com/json-iterator/go"
  8. var (
  9. json = jsoniter.ConfigCompatibleWithStandardLibrary
  10. // Marshal is exported by gin/json package.
  11. Marshal = json.Marshal
  12. // Unmarshal is exported by gin/json package.
  13. Unmarshal = json.Unmarshal
  14. // MarshalIndent is exported by gin/json package.
  15. MarshalIndent = json.MarshalIndent
  16. // NewDecoder is exported by gin/json package.
  17. NewDecoder = json.NewDecoder
  18. // NewEncoder is exported by gin/json package.
  19. NewEncoder = json.NewEncoder
  20. )