#228 · Primary category: AI Coding Assistants

go-modern-guidelines

ai-agents coding-agent developer-tools go golang guidelines

Help AI coding agents write modern Go

Project last updated:08/29/26

GitHub Stars

2.9K

Forks

82

Contributors

6

License

Apache-2.0

Why we included this project

AI coding assistants write a lot of Go, but what they produce often looks like the language stopped moving around Go 1.10: manual loops where range-over-int works, nil-check chains where cmp.Or would do. JetBrains packaged a practical fix as agent instructions. Point Claude Code, Codex, Cursor, Junie, or a skills.sh agent at them and the assistant reads your go.mod, limits itself to the features and stdlib additions that version supports, and prefers modern idioms like slices.Contains over hand-rolled loops. The guidelines also cover very recent stuff most models never trained on, such as the new(42) pointer helper and the type-safe error matching of errors.AsType[T] from Go 1.26. It is the same goal as the Go team's modernize analyzer, but for new code, so there is less to clean up later.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category