golang-idioms
Idiomatic Go patterns for error handling, interfaces, concurrency, testing, and module management
Content Preview
---
name: golang-idioms
description: Idiomatic Go patterns for error handling, interfaces, concurrency, testing, and module management
---
# Go Idioms
## Error Handling
```go
// Return errors, never panic in library code
func LoadConfig(path string) (Config, error) {
data, err := os.ReadFile(path)
if err != nil {
return Config{}, fmt.Errorf("reading config %s: %w", path, err)
}
var cfg Config
if err := json.Unmarshal(data, &cfg); err != nil {
return ConfigHow to Use
Recommended: Install to project (local)
mkdir -p .claude/skills
curl -o .claude/skills/golang-idioms.md \
https://raw.githubusercontent.com/rohitg00/awesome-claude-code-toolkit/main/skills/golang-idioms/SKILL.mdSkill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.
Alternative: Clone full repo
git clone https://github.com/rohitg00/awesome-claude-code-toolkitThen reference at skills/golang-idioms/SKILL.md
Related Skills
grpc-golang
Build production-ready gRPC services in Go with mTLS, streaming, and observability. Use when designing Protobuf contracts with Buf or implementing secure service-to-service transport.
securitygrpcgolang
by sickn33 (Antigravity) · antigravity-awesome-skills
golang-patterns
堅牢で効率的かつ保守可能なGoアプリケーションを構築するための慣用的なGoパターン、ベストプラクティス、規約。
golang-patternsgolangpatternsgo
by affaan-m · everything-claude-code
golang-testing
テスト駆動開発とGoコードの高品質を保証するための包括的なテスト戦略。
golang-testinggolangtestinggo
by affaan-m · everything-claude-code
dbos-golang
Guide for building reliable, fault-tolerant Go applications with DBOS durable workflows.
developmentdbosgolang
by sickn33 (Antigravity) · antigravity-awesome-skills