Source file src/go/analysis/doc.go
1 // Copyright 2026 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package analysis defines the core types of the Go analysis 6 // framework, a modular interface between static checkers 7 // ("analyzers") and the drivers that run them. 8 // 9 // An [Analyzer] statically describes an analysis function: its name, 10 // documentation, prerequisite analyzers, and the types of its result 11 // and facts. A [Pass] provides an analyzer with information about a 12 // single package and with operations for reporting [Diagnostic] 13 // values and for importing and exporting [Fact] values. 14 // 15 // This package defines only the types. The analyzers, drivers, and 16 // supporting libraries are in golang.org/x/tools/go/analysis and its 17 // subpackages; the types of golang.org/x/tools/go/analysis itself are 18 // aliases for the ones defined here. See that package for full 19 // documentation. 20 package analysis 21