-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2017 Bo-Yi Wu. All rights reserved. | ||
// Use of this source code is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
//go:build sonic | ||
// +build sonic | ||
|
||
package json | ||
|
||
import "github.com/bytedance/sonic" | ||
|
||
var ( | ||
json = sonic.ConfigStd | ||
// Marshal is exported by gin/json package. | ||
Marshal = json.Marshal | ||
// Unmarshal is exported by gin/json package. | ||
Unmarshal = json.Unmarshal | ||
// MarshalIndent is exported by gin/json package. | ||
MarshalIndent = json.MarshalIndent | ||
// NewDecoder is exported by gin/json package. | ||
NewDecoder = json.NewDecoder | ||
// NewEncoder is exported by gin/json package. | ||
NewEncoder = json.NewEncoder | ||
) |