golang-backend-development
Complete guide for Go backend development including concurrency patterns, web servers, database integration, microservices, and production deployment
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- golang-backend-development
- metadata
- { "tags": "golang, go, concurrency, web-servers, microservices, backend, goroutines, channels, grpc, rest-api", "tier": "tier-1", "skill-graph-id": "plugin/10x-swe/golang-backend-development", "skill-graph-uses": "", "skill-graph-used-by": "" }
- description
- Complete guide for Go backend development including concurrency patterns, web servers, database integration, microservices, and production deployment
02 资源文件 8
- 参考文档EXAMPLES.md63.1 KB
- 许可证LICENSE1.0 KB
- 参考文档references/patterns.md33.8 KB
- 参考文档references/scoring.md710 B
- 参考文档references/trader-registry.json3.3 KB
- 脚本scripts/rank_public_traders.py5.3 KB
- 参考文档SOURCE.md371 B
- 参考文档TRUST.auto.yaml2.0 KB
03 SKILL.md 正文
Go Backend Development
Build or change Go HTTP/gRPC services, concurrent workers, database access, and production lifecycle behavior. Match the project's Go version and existing boundaries before selecting a pattern.
Workflow
- Identify the handler or worker, its inputs, dependencies, cancellation path, and completion condition.
- Reuse the current service structure. Prefer the standard library unless the project already uses a suitable dependency.
- Bound work and resource use: goroutines, queues, request bodies, connection pools, and timeouts. Give every goroutine an exit path and an owner that waits for completion.
- Propagate request contexts into network and database operations. Cancel derived contexts; close resources and check iteration errors.
- Protect shared state, parameterize SQL, and keep transaction boundaries explicit. Return contextual errors without exposing sensitive details to clients.
- Verify changed behavior with focused tests. Use the race detector for concurrency changes and benchmarks/profiles for performance claims. Confirm graceful shutdown when lifecycle behavior changes.
Load only the relevant examples
- Pattern reference: concurrency primitives, HTTP handlers, pipelines, worker pools, SQL, errors, testing, shutdown, logging, and microservice examples. Read the matching section only.
- Extended examples: use its contents to select an implementation example when the pattern reference is insufficient.
These are retained illustrative examples, not verified production implementations. Adapt them to the installed Go version and current code; do not copy arbitrary pool sizes, coverage targets, layouts, or deployment architecture. Some examples use older APIs or simplified cancellation/error handling. Confirm those details in the official references before use.
Authoritative references
Go documentation, net/http, database/sql, context, sync, and Go pipelines.
04 同仓库更多 Skills
turnstile-spin
Set up Cloudflare Turnstile end-to-end in a project. Scan the codebase, create the widget via the Cloudflare API, embed it where user requests need bot verification (form submissions, SPA actions, API endpoints, download links, comment or vote submissions, etc.), wire canonical server-side siteverify in the customer's existing backend, validate, and persist the skill. Load this when a user asks to add Turnstile, set up CAPTCHA, protect a form or endpoint from bots, or fix a Turnstile integration. Uses Cloudflare's documented Turnstile contract.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
source-insights
Prepare inspected source evidence, preserve exact citations, and publish reviewed insights into an explicit local library.
skill-graph
Discover skills and workflows through independent lexical search, relationship paths and a terminal graph.
session-search
Recall public session turns with exact provenance, bounded excerpts and independent piped exports.
newsletter
Produce a private local AI newsletter from bounded public research, with cited deep dives, HTML/Markdown output, Dagu scheduling and seven-day retention.