gin
Gin Go web framework. Use when building high-performance Go APIs, middleware chains, JSON/XML binding with validation, route grouping, or testing with httptest.
от skeletorflet★ 48 звёзд на GitHub
Установить gin в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
gin
Fast Go HTTP framework with zero-allocation router and minimal memory footprint.
Core Concepts
- Fast routing: radix tree-based router with
gin.Default()for logger and recovery middleware - Middleware chains:
r.Use()for global middleware, group-level chains for scoped behavior - JSON/XML binding:
c.ShouldBindJSON()with struct tags for automatic request validation - Route grouping:
v1 := r.Group("/api/v1")with shared middleware and URL prefixes
Common Patterns
- File uploads:
c.FormFile("file")withc.SaveUploadedFile()for multipart form handling - Custom middleware:
func() gin.HandlerFuncclosure pattern for request-scoped data injection - Error handling:
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})for structured errors - Testing:
httptest.NewRecorder()withr.ServeHTTP()for integration tests without server
Best Practices
- Use
ShouldBindJSONfor strict validation,ShouldBindBodyWithfor content-type negotiation - Validate structs with
bindingtags (required, min, max, oneof) rather than manual checks - Group routes by version and domain for maintainable API organization
- Use
c.Set()/c.Get()for request-scoped values like user identity from auth middleware
Common Code Patterns
r.GET("/ping", func(c *gin.Context) { c.JSON(200, gin.H{"message": "pong"}) })authorized := r.Group("/", AuthRequired()); authorized.POST("/items", createItem)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл gin?
Gin Go web framework. Use when building high-performance Go APIs, middleware chains, JSON/XML binding with validation, route grouping, or testing with httptest.
Как установить скилл gin?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gin запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…