컨텐츠로 건너뛰기

Encoding

이 콘텐츠는 아직 해당 언어로 제공되지 않습니다.

Build with json replacement

Gin uses encoding/json as the default JSON package but you can change it by building from other tags.

go-json

Terminal window
go build -tags=go_json .

jsoniter

Terminal window
go build -tags=jsoniter .

sonic (you have to ensure that your cpu supports avx instruction.)

Terminal window
$ go build -tags="sonic avx" .