Featured⭐ 3909 stars· Go· Apache-2.0
Go Modern Guidelines
Help AI coding agents write modern Go
View on GitHub ↗🎯 What it does
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.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 `modernize` analyzer. See [FEATURES.md](FEATURES.md) for
🛠️ How to use
Clone the repo and follow the README setup instructions.
📋 GitHub Topics
ai-agentscoding-agentdeveloper-toolsgogolangguidelines