feat: add sonic json support (#3184)

* feat: add sonic json support

* fix: add blank line in readme
This commit is contained in:
Rainshaw
2022-08-02 10:20:59 +08:00
committed by GitHub
parent 79dd72deb9
commit 8374ed2268
7 changed files with 67 additions and 4 deletions
+6
View File
@@ -205,6 +205,12 @@ go build -tags=jsoniter .
go build -tags=go_json .
```
[sonic](https://github.com/bytedance/sonic) (you have to ensure that your cpu support avx instruction.)
```sh
$ go build -tags="sonic avx" .
```
## Build without `MsgPack` rendering feature
Gin enables `MsgPack` rendering feature by default. But you can disable this feature by specifying `nomsgpack` build tag.