·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

暫無