json.go 534 B

1234567891011121314151617181920
  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 "encoding/json"
  7. var (
  8. // Marshal is exported by gin/json package.
  9. Marshal = json.Marshal
  10. // MarshalIndent is exported by gin/json package.
  11. MarshalIndent = json.MarshalIndent
  12. // NewDecoder is exported by gin/json package.
  13. NewDecoder = json.NewDecoder
  14. // NewEncoder is exported by gin/json package.
  15. NewEncoder = json.NewEncoder
  16. )