Gin Web Framework
  • 文件
  • Blog
  • GitHub
    Gin Middleware
  • 繁體中文
    • English
    • 日本語
    • Español
    • Português
    • Turkish
    • Persian
    • 简体中文
    • 한국어
繁體中文
  • English
  • 日本語
  • Español
  • Português
  • Turkish
  • Persian
  • 简体中文
  • 한국어
  • 文件
    • 介紹
    • 快速入門
    • 效能評估
    • 特色
    • Jsoniter
    • 部署
    • 範例
      • AsciiJSON
      • Bind form-data request with custom struct
      • Bind html checkboxes
      • Bind query string or post data
      • Bind Uri
      • Build a single binary with templates
      • Controlling Log output coloring
      • Custom HTTP configuration
      • Custom Middleware
      • Custom validators
      • Define format for the log of routes
      • Goroutines inside a middleware
      • Graceful restart or stop
      • Grouping routes
      • How to write log file
      • HTML rendering
      • HTTP2 server push
      • JSONP
      • Map as querystring or postform parameters
      • Model binding and validation
      • Multipart/Urlencoded binding
      • Multipart/Urlencoded form
      • Multitemplate
      • Only bind query string
      • Parameters in path
      • PureJSON
      • Query and post form
      • Query string parameters
      • Redirects
      • Run multiple service
      • SecureJSON
      • Serving data from reader
      • Serving static files
      • Set and get a cookie
      • Support Let's Encrypt
      • Try to bind body into different structs
      • Upload files
        • Multiple files
        • Single file
      • Using BasicAuth middleware
      • Using HTTP method
      • Using middleware
      • Without middleware by default
      • XML/JSON/YAML/ProtoBuf rendering
    • 測試
    • 使用者
    • FAQ
查看頁面原始碼 編輯此頁 創建子頁面 創建文檔議題 創建項目議題
  1. 文件
  2. 範例

範例

這個章節列出一些 API 使用方法。


AsciiJSON

Bind form-data request with custom struct

Bind html checkboxes

Bind query string or post data

Bind Uri

Build a single binary with templates

Controlling Log output coloring

Custom HTTP configuration

Custom Middleware

Custom validators

Define format for the log of routes

Goroutines inside a middleware

Graceful restart or stop

Grouping routes

How to write log file

HTML rendering

HTTP2 server push

JSONP

Map as querystring or postform parameters

Model binding and validation

Multipart/Urlencoded binding

Multipart/Urlencoded form

Multitemplate

Only bind query string

Parameters in path

PureJSON

Query and post form

Query string parameters

Redirects

Run multiple service

SecureJSON

Serving data from reader

Serving static files

Set and get a cookie

Support Let's Encrypt

Try to bind body into different structs

Upload files

Using BasicAuth middleware

Using HTTP method

Using middleware

Without middleware by default

XML/JSON/YAML/ProtoBuf rendering

最後修改 13.06.2019: Translate zh tw (#75) (cb73148)
© 2023 Gin Team 保留所有權利