Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.
54
43%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./docs/zh-TW/skills/golang-patterns/SKILL.mdError handling patterns
fmt.Errorf %w wrapping
100%
100%
Context in error messages
100%
100%
Custom error type
100%
100%
Sentinel error variables
0%
100%
errors.Is or errors.As usage
100%
100%
No ignored errors
100%
100%
No panic for control flow
100%
100%
Early return pattern
100%
100%
Errors returned not swallowed
100%
100%
No naked returns
100%
100%
Concurrency and context patterns
errgroup usage
0%
100%
errgroup.WithContext called
0%
100%
context.WithTimeout + defer cancel
100%
100%
Context-aware HTTP requests
100%
100%
Goroutine leak prevention
100%
100%
Context as first parameter
100%
100%
No ignored errors
100%
70%
Error wrapping
0%
100%
Race-safe result collection
100%
100%
g.Wait() error handled
0%
30%
Package design and performance patterns
Functional options pattern
16%
100%
Accept interfaces, return concrete
20%
60%
Standard project layout
50%
50%
Package naming conventions
100%
100%
No package-level mutable state
70%
90%
Pre-allocated slices
70%
100%
strings.Builder for assembly
100%
100%
sync.Pool for buffer reuse
16%
100%
Small focused interfaces
80%
100%
Interfaces at use site
50%
50%
ae2cadd
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.