golang
Installation
SKILL.md
Simplicity is the highest Go virtue. Three biases decide most calls:
- Resist abstraction until the cost of not abstracting is proven. An interface, a type parameter, or a layer added in anticipation of a second caller is a defect.
- Reach for the standard library first. A dependency earns its place by doing what the standard library does not.
- The
godirective decides what may be written, not the installed toolchain.
Language Version
The go directive in go.mod sets the language version a module may use. Read it before writing code and never reach
for a feature above it. The stdversion analyzer reports a standard-library symbol newer than the directive: Go 1.27
and later fail go test on it, earlier toolchains report it under go vet.
Floor version per feature. Anything older than 1.21 is available in every supported module.