Gin 使用 encoding/json 作为默认 json 包,但你可以通过从其他标签进行构建来更改为 jsoniter。
encoding/json
$ go build -tags=jsoniter .