jsoniter.go 608 B

12345678910111213141516171819202122
  1. // Copyright 2021 ls. All rights reserved.
  2. //go:build jsoniter
  3. // +build jsoniter
  4. package json
  5. import jsoniter "github.com/json-iterator/go"
  6. var (
  7. json = jsoniter.ConfigCompatibleWithStandardLibrary
  8. // Marshal is exported by sacred/json package.
  9. Marshal = json.Marshal
  10. // Unmarshal is exported by sacred/json package.
  11. Unmarshal = json.Unmarshal
  12. // MarshalIndent is exported by sacred/json package.
  13. MarshalIndent = json.MarshalIndent
  14. // NewDecoder is exported by sacred/json package.
  15. NewDecoder = json.NewDecoder
  16. // NewEncoder is exported by sacred/json package.
  17. NewEncoder = json.NewEncoder
  18. )