What problem does it solve?
Keeps Go code and AI-generated suggestions from using outdated language features and standard library APIs by providing concise, verified updates and migration guidance for changes introduced after the model training cutoff.
Core Features & Use Cases
- Language updates: Summarizes new language capabilities such as new(expr) and self-referential generics and explains migration patterns.
- Standard library changes: Documents additions like errors.AsType, bytes.Buffer.Peek, reflect iterator methods, and testing artifact directories with practical usage notes.
- Tooling & modernizers: Explains go fix modernizers and the //go:fix inline directive so maintainers can adopt automated code rewrites.
- Use case: When upgrading a repository to Go 1.26, use the guidance to replace ptr helpers with new(expr), refactor error handling to errors.AsType, and run go fix to modernize APIs.
Quick Start
Load go-knowledge-patch before editing or generating Go code so recommendations use new(expr), errors.AsType, reflect iterators, and go fix modernizers.