jsoniter.go 600 B

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