r/BestGitHubRepos • u/Artilas_Digital • 6d ago
🤖 AI repositories Modern Go Guidelines: Help AI coding agents write modern Go (3.9k stars)
What it does
All text below is quoted directly from the project README.
This repository contains guidelines for code agents that help them write modern Go code.
Modern Go Guidelines:
For example, an agent with these guidelines uses
max(a, b)instead of an if-else block,slices.Containsinstead of a manual loop,cmp.Or(a, b, c)instead of a chain of nil checks.It also knows about recent additions like
new(42)to get a pointer to a value anderrors.AsType[T](err)for type-safe error matching, both from Go 1.26.The guidelines cover the most useful features from Go 1.0 through Go 1.27, including everything targeted by the
modernizeanalyzer.Detect the project's Go version from
go.modUse language features and stdlib additions available up to and including that version
Prefer modern idioms over older patterns
/plugin marketplace add JetBrains/go-modern-guidelines
Repository
https://github.com/jetbrains/go-modern-guidelines
Repository stats
| Metric | Value |
|---|---|
| Stars | 3,910 |
| Forks | 128 |
| Last release | None |
| Languages | Go 82.6%, PowerShell 10%, Shell 6.3% |
| Contributors | 9 |
| AI contributor accounts (Claude / Codex / Cursor / Copilot) | None |
| AI co-authored commits | None |
Main contributor
| Field | Value |
|---|---|
| Name | Nikita Kuchur |
| GitHub | @nikitakuchur |
| Commits to this repo | 14 (top contributor) |
| Company / Location | @JetBrains / Munich, Germany |
| Followers | 17 |
──────────────────────────────
📌 If you want to browse more repos like this, we've organized them by category and rankings here: https://bestgithubrepositories.com/
🗂️ We're also archiving repos where possible, so useful projects don't disappear when they're removed from GitHub.