JetBrains/go-modern-guidelines

Help AI coding agents write modern Go

Open original source ↗

Older snapshot: check the original source for current information.

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

[](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) This repository contains guidelines for code agents that help them write modern Go code. For example, an agent with these guidelines uses max(a, b) instead of an if-else block, slices.Contains instead 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 and errors.AsTypeT 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 modernize analyzer. See FEATURES.md for the complete list with detailed descriptions and examples. An agent will: All coding agents tend to generate outdated Go. Two reasons: These guidelines fix both problems by giving the agent an explicit reference. This aligns with the Go team's direction. The modernize analyzer exists to automatically update existing code to use newer idioms (see this talk from…

JetBrains/go-modern-guidelines on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-11-07T05:23:27.476Z

Inside the original README — Document outline
  1. Modern Go Guidelines
  2. Motivation
  3. Requirements
  4. Instructions
  5. Junie
  6. Junie CLI
  7. Updating
  8. Claude Code
  9. Installation
  10. Usage
  11. Updating
  12. Codex

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Documentation belongs to its respective authors. Reported project/model license: Apache-2.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

Help AI coding agents write modern Go

Repository facts

Owner
JetBrains
Primary language
Go
Stars
3,668
Forks
122
Open issues + pull requests
11
License
Apache-2.0
Archived
No
Default branch
main
Created
2025-11-24T12:46:31.000Z
Last push
2026-09-10T12:29:04.000Z

Topics and intended use

Owner-supplied topics: ai-agents, coding-agent, developer-tools, go, golang, guidelines

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-09-24T12:02:35.987Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

avelino/awesome-go

ollama/ollama

golang/go

kubernetes/kubernetes

JuliusBrussee/caveman

netdata/netdata