sonic.go 695 B

1234567891011121314151617181920212223
  1. // Copyright 2022 Gin Core Team. 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 sonic && avx && (linux || windows || darwin) && amd64
  5. package json
  6. import "github.com/bytedance/sonic"
  7. var (
  8. json = sonic.ConfigStd
  9. // Marshal is exported by gin/json package.
  10. Marshal = json.Marshal
  11. // Unmarshal is exported by gin/json package.
  12. Unmarshal = json.Unmarshal
  13. // MarshalIndent is exported by gin/json package.
  14. MarshalIndent = json.MarshalIndent
  15. // NewDecoder is exported by gin/json package.
  16. NewDecoder = json.NewDecoder
  17. // NewEncoder is exported by gin/json package.
  18. NewEncoder = json.NewEncoder
  19. )