·golang-gin-api
</>

golang-gin-api

使用 Go Gin 框架构建 REST API。涵盖路由、处理程序模式、请求绑定/验证、中间件链、错误处理、安全标头 (OWASP)、CORS、超时中间件和分层项目结构。在创建 Go Web 服务器、REST 端点、HTTP 处理程序或使用 Gin 框架时使用。当用户在 Go 中提到 Gin 路由、中间件、JSON 响应、请求解析或 API 结构时也会激活。

12安装·3热度·@henriqueatila

安装

$npx skills add https://github.com/henriqueatila/golang-gin-best-practices --skill golang-gin-api

如何安装 golang-gin-api

通过命令行快速安装 golang-gin-api AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/henriqueatila/golang-gin-best-practices --skill golang-gin-api
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:henriqueatila/golang-gin-best-practices。

SKILL.md

查看原文

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-api
分类
</>开发工具
认证
收录时间
2026-03-10
更新时间
2026-03-11

Browse more skills from henriqueatila/golang-gin-best-practices

快速解答

什么是 golang-gin-api?

使用 Go Gin 框架构建 REST API。涵盖路由、处理程序模式、请求绑定/验证、中间件链、错误处理、安全标头 (OWASP)、CORS、超时中间件和分层项目结构。在创建 Go Web 服务器、REST 端点、HTTP 处理程序或使用 Gin 框架时使用。当用户在 Go 中提到 Gin 路由、中间件、JSON 响应、请求解析或 API 结构时也会激活。 来源:henriqueatila/golang-gin-best-practices。

如何安装 golang-gin-api?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/henriqueatila/golang-gin-best-practices --skill golang-gin-api 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/henriqueatila/golang-gin-best-practices

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-03-10

相关 Skills

暂无