Pular para o conteúdo

Encoding

Este conteúdo não está disponível em sua língua ainda.

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" .