Rendering
此内容尚不支持你的语言。
Gin supports rendering responses in multiple formats including JSON, XML, YAML, ProtoBuf, HTML, and more. This section covers the various rendering options available and how to serve static files and data.
This section covers:
- XML/JSON/YAML/ProtoBuf rendering
- SecureJSON, JSONP, AsciiJSON, PureJSON
- Serving static files and data from files or readers
- HTML template rendering
- Using multiple templates
- Embedding templates in a single binary