go-backend

仓库创建 2026年6月30日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

覆盖常见后端模式与性能/并发细节,适合构建微服务与 API。

这个 Skill 做什么

为 Go 后端服务提供 HTTP、并发、数据库与测试的最佳实践与示例。

给写 Go 后端的人一套实战指南和示例:从 net/http、chi/Gin/Echo 的路由,到 goroutine/channel 与 context 的并发模式,再到用 pgx/sqlc 做数据库集成与表驱动测试。适合做 HTTP API、gRPC 服务或需要性能剖析与加固的后端工程。特别会示范并发安全写法、测试覆盖和用 pprof 做性能定位,帮你少走踩坑路。

▸ 展开 SKILL.md 英文原文

Use for Go backend services — net/http, chi/Gin/Echo, goroutine/channel concurrency, context, pgx/sqlc, testing, hardening. Triggers — go.mod, .go files, 'gin', 'chi', 'echo', 'pgx'.

开发编程Go后端数据库通用
0
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/muxammadmamajonov/dot-claude/main/.claude/skills/go-backend/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/muxammadmamajonov/dot-claude/main/.claude/skills/go-backend/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Go Backend Development

## When to use
- Writing HTTP APIs, gRPC services, or CLI tools in Go
- Designing package boundaries, interfaces, and dependency injection
- Implementing concurrency with goroutines, channels, and context propagation
- Integrating databases via `pgx`, `sqlc`, or `database/sql`
- Writing table-driven tests and benchmarks
- Profiling CPU/memory with `pprof`

## Workflow

1. **Confirm Go version** — check `go.mod`. Prefer Go 1.21+ (range over func, `slog` logger, `slices`/`maps` stdlib packages).
2. **Establish package layout** before writing code:
   ```
   cmd/server/main.go          # binary entrypoints only
   internal/                   # private packages
     api
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有