← all repositories

JetBrains/go-modern-guidelines

A set of guidelines and rules that help AI coding agents produce modern, idiomatic Go code.

830 stars Go Coding Assistants
go-modern-guidelines
Velocity · 7d
+2.6
★ / day
star history

This repository contains guidelines for AI code agents to write modern Go code from Go 1.0 through Go 1.27. It addresses two problems with AI-generated code: training data lag (models missing newer language features) and frequency bias (older patterns appearing more often). The guidelines teach agents to use newer idioms like slices.Contains, cmp.Or, and errors.AsType[T], detecting the project’s Go version from go.mod to apply appropriate features.

Frequently asked

What is JetBrains/go-modern-guidelines?
A set of guidelines and rules that help AI coding agents produce modern, idiomatic Go code.
Is go-modern-guidelines open source?
Yes — JetBrains/go-modern-guidelines is open source, released under the Apache-2.0 license.
What language is go-modern-guidelines written in?
JetBrains/go-modern-guidelines is primarily written in Go.
How popular is go-modern-guidelines?
JetBrains/go-modern-guidelines has 830 stars on GitHub.
Where can I find go-modern-guidelines?
JetBrains/go-modern-guidelines is on GitHub at https://github.com/JetBrains/go-modern-guidelines.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.