jsoniter.go 691 B

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