컨텐츠로 건너뛰기

Build Tags

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

Gin supports Go build tags to customize the binary at compile time. You can replace the default JSON encoder with a faster alternative, or disable features like MsgPack rendering to reduce binary size.

This section covers:

  • Replacing the default JSON encoder with go-json, jsoniter, or sonic
  • Disabling MsgPack rendering with the nomsgpack build tag