Tagged articles

go/analysis

1 articles · Page 1 of 1
Radish, Keep Going!
Radish, Keep Going!
Aug 28, 2026 · Backend Development

How Go Code Analysis Works: Building a Cross-Package Linter with Facts

This article explains Go's go/analysis framework by building a linter that detects unclosed http.Response.Body, demonstrating AST inspection, type-driven detection, cross-package fact propagation, and automatic fix suggestions, while comparing Requires vs FactTypes and noting real-world limitations.

AST inspectionFact mechanismcross-package analysis
0 likes · 16 min read
How Go Code Analysis Works: Building a Cross-Package Linter with Facts