Skip to content
Ricky
Chinese

搜尋

Searching… No matching pages. Matching pages are listed below. Search is unavailable. Please try again.

Gin

All posts

Go 文章

學會 gin 參數校驗之 validator 函式庫,看這一篇就夠了 字串約束 excludesall:不包含參數中任意的 UNICODE 字元,例如 excludesall=ab excludesrune:不包含參數表示的 rune 字元,excludesrune=asong startswith:以參數子字串為前綴,例如 startswith=hi endswith:以參數子字串為後綴,例如 …

4 分鐘

Gin 框架绑定 JSON 参数使用 jsoniter simple go build -tags=jsoniter ./... custom implement BindingBody interface // github.com/gin-gonic/gin@v1.6.3/binding/binding.go:36 // Binding describes the interface which needs …

2 分鐘

Gin中文文档

自定义路由日志的格式 Gin 运行多个服务 XML、JSON、YAML 和 ProtoBuf 渲染(输出格式) 自定义路由日志的格式 default [GIN-debug] POST /foo --> main.main.func1 (3 handlers) [GIN-debug] GET /bar --> main.main.func2 (3 handlers) [GIN-debug] GET /status …

2 分鐘