json.go 681 B

12345678910111213141516171819202122
  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 && !go_json && !(sonic && avx && (linux || windows || darwin) && amd64)
  5. package json
  6. import "encoding/json"
  7. var (
  8. // Marshal is exported by gin/json package.
  9. Marshal = json.Marshal
  10. // Unmarshal is exported by gin/json package.
  11. Unmarshal = json.Unmarshal
  12. // MarshalIndent is exported by gin/json package.
  13. MarshalIndent = json.MarshalIndent
  14. // NewDecoder is exported by gin/json package.
  15. NewDecoder = json.NewDecoder
  16. // NewEncoder is exported by gin/json package.
  17. NewEncoder = json.NewEncoder
  18. )