跳到內容
Gin Web Framework
搜尋
Ctrl
K
取消
GitHub
選擇佈景主題
深色
淺色
自動
選擇語言
English
Español
Persian
Bahasa Indonesia
日本語
한국어
Português
Russian
Turkish
简体中文
繁體中文
عربي
Docs
Blog
binding
Model binding and validation
Custom validators
Only bind query string
Bind query string or post data
Bind default values for form fields
Collection format for arrays
Bind Uri
Binding
Bind custom unmarshaler
Bind header
Bind html checkboxes
Multipart/Urlencoded binding
Bind form-data request with custom struct
Try to bind body into different structs
Bind form-data with custom struct tag
build-tags
Build with JSON replacement
Build without MsgPack
Build Tags
introduction
介紹
logging
How to write log file
Custom log file
Skip logging
Controlling Log output coloring
Avoid logging query strings
Define format for the log of routes
Logging
middleware
Without middleware by default
Using middleware
Custom Middleware
Error handling middleware
Using BasicAuth middleware
Middleware
Goroutines inside a middleware
Security Headers
rendering
XML/JSON/YAML/ProtoBuf rendering
SecureJSON
JSONP
AsciiJSON
PureJSON
Serving static files
Serving data from file
Serving data from reader
Rendering
HTML rendering
Multitemplate
Build a single binary with templates
routing
Using HTTP method
upload-file
Single file
Multiple files
Upload files
Parameters in path
Query string parameters
Multipart/Urlencoded form
Routing
Query and post form
Map as querystring or postform parameters
Grouping routes
Redirects
server-config
Custom HTTP configuration
Custom JSON codec at runtime
Support Let's Encrypt
Run multiple service
Graceful restart or stop
HTTP2 server push
Cookie
Trusted proxies
Server Configuration
quickstart
快速開始
benchmarks
效能評估
features
特色
deployment
部署
examples
🍳 Gin 食譜(烹飪書)
AsciiJSON
將請求內文綁定到不同的結構中
綁定表單欄位的預設值
使用自訂結構綁定 form-data 請求
綁定 HTML 核取方塊
綁定查詢字串或 POST 資料
使用樣板建置單一二進位檔
綁定 URI
模型綁定與驗證
陣列的集合格式
控制日誌輸出的著色
Cookie
自訂 HTTP 組態
自訂中介軟體
自訂驗證器
定義路由日誌的格式
在中介軟體中使用 Goroutine
優雅地重新啟動或停止
路由分組
HTML 渲染
使用 HTTP 方法
HTTP/2 伺服器推送
JSONP
將 Map 作為查詢字串或 postform 參數
Multipart/Urlencoded 綁定
Multipart/Urlencoded 表單
多重樣板
僅綁定查詢字串
路徑中的參數
PureJSON
查詢和發布表單
查詢字串參數
重新導向
XML/JSON/YAML/ProtoBuf 渲染
執行多個服務
SecureJSON
安全標頭
從讀取器提供資料
提供靜態檔案
支援 Let's Encrypt
upload-file
上傳檔案
多個檔案
Single file
使用 BasicAuth 中介軟體
使用中介軟體
預設不使用中介軟體
如何寫入日誌檔
learning-resources
學習資源
testing
測試
users
使用者
faq
常見問題
Method Not Allowed 常見問題
文件
GitHub
選擇佈景主題
深色
淺色
自動
選擇語言
English
Español
Persian
Bahasa Indonesia
日本語
한국어
Português
Russian
Turkish
简体中文
繁體中文
عربي
Blog
news
Gin 1.11.0 發布!HTTP/3、表單改進、效能提升及更多
宣佈 Gin 1.12.0:BSON 支援、Context 改進、效能提升及更多功能
如何建立一個有效的中介軟體
releases
Gin 1.10.0 is released
Gin 1.11.0 發布
Gin 1.12.0 已發布
Gin 1.3.0 is released
Gin 1.4.0 is released
Gin 1.5.0 is released
Gin 1.6.0 is released
Gin 1.7.0 is released
Gin 1.8.0 is released
Gin 1.9.0 is released
GitHub
選擇佈景主題
深色
淺色
自動
選擇語言
English
Español
Persian
Bahasa Indonesia
日本語
한국어
Português
Russian
Turkish
简体中文
繁體中文
عربي
Upload files
本頁內容尚未翻譯。
The section lists upload file api usage.