什么是 golang-gin-api?
使用 Go Gin 框架构建 REST API。涵盖路由、处理程序模式、请求绑定/验证、中间件链、错误处理、安全标头 (OWASP)、CORS、超时中间件和分层项目结构。在创建 Go Web 服务器、REST 端点、HTTP 处理程序或使用 Gin 框架时使用。当用户在 Go 中提到 Gin 路由、中间件、JSON 响应、请求解析或 API 结构时也会激活。 来源:henriqueatila/golang-gin-best-practices。
使用 Go Gin 框架构建 REST API。涵盖路由、处理程序模式、请求绑定/验证、中间件链、错误处理、安全标头 (OWASP)、CORS、超时中间件和分层项目结构。在创建 Go Web 服务器、REST 端点、HTTP 处理程序或使用 Gin 框架时使用。当用户在 Go 中提到 Gin 路由、中间件、JSON 响应、请求解析或 API 结构时也会激活。
通过命令行快速安装 golang-gin-api AI 技能到你的开发环境
来源:henriqueatila/golang-gin-best-practices。
Build production-grade REST APIs with Go and Gin. This skill covers the 80% of patterns you need daily: server setup, routing, request binding, response formatting, and error handling.
Use internal/ for code that must not be imported by other modules. Use pkg/ for reusable middleware and utilities.
Architecture note: In clean architecture, domain entities should not carry json or binding tags. Use separate request/response DTOs in the delivery layer. See golang-gin-clean-arch Golden Rule 4.
使用 Go Gin 框架构建 REST API。涵盖路由、处理程序模式、请求绑定/验证、中间件链、错误处理、安全标头 (OWASP)、CORS、超时中间件和分层项目结构。在创建 Go Web 服务器、REST 端点、HTTP 处理程序或使用 Gin 框架时使用。当用户在 Go 中提到 Gin 路由、中间件、JSON 响应、请求解析或 API 结构时也会激活。 来源:henriqueatila/golang-gin-best-practices。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/henriqueatila/golang-gin-best-practices --skill golang-gin-apiBrowse more skills from henriqueatila/golang-gin-best-practices
使用 Go Gin 框架构建 REST API。涵盖路由、处理程序模式、请求绑定/验证、中间件链、错误处理、安全标头 (OWASP)、CORS、超时中间件和分层项目结构。在创建 Go Web 服务器、REST 端点、HTTP 处理程序或使用 Gin 框架时使用。当用户在 Go 中提到 Gin 路由、中间件、JSON 响应、请求解析或 API 结构时也会激活。 来源:henriqueatila/golang-gin-best-practices。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/henriqueatila/golang-gin-best-practices --skill golang-gin-api 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/henriqueatila/golang-gin-best-practices