AGENT SKILL

lang-go

Go development standards, Effective Go, and tooling.

License 许可
MIT
最近更新
2026-08-23
Stars
★ 1
Forks
0

01 前言 Front Matter

name
lang-go
description
Go development standards, Effective Go, and tooling.

03 SKILL.md 正文

GO Standards

  • Style: Effective Go & Google Go Style.
  • Tooling: gofmt / goimports, golangci-lint, testing package + table-driven tests.
  • Errors: Return errors explicitly, never panic. Wrap errors with fmt.Errorf("%w", err).
  • Interfaces: Accept interfaces, return concrete types. Keep interfaces small (1-2 methods).
  • Concurrency: Use goroutines and channels, but avoid sharing memory to communicate; share memory by communicating.
  • Context: Pass context.Context as the first argument for functions doing I/O.

Always load clean-code alongside this skill.

04 同仓库更多 Skills