Versions in this module Expand all Collapse all v0 v0.4.5 Sep 2, 2020 Changes in this version + func Validate(analyzers []*Analyzer) error + type Analyzer struct + Doc string + FactTypes []Fact + Flags flag.FlagSet + Name string + Requires []*Analyzer + ResultType reflect.Type + Run func(*Pass) (interface{}, error) + RunDespiteErrors bool + func (a *Analyzer) String() string + type Diagnostic struct + Category string + End token.Pos + Message string + Pos token.Pos + Related []RelatedInformation + SuggestedFixes []SuggestedFix + type Fact interface + AFact func() + type ObjectFact struct + Fact Fact + Object types.Object + type PackageFact struct + Fact Fact + Package *types.Package + type Pass struct + AllObjectFacts func() []ObjectFact + AllPackageFacts func() []PackageFact + Analyzer *Analyzer + ExportObjectFact func(obj types.Object, fact Fact) + ExportPackageFact func(fact Fact) + Files []*ast.File + Fset *token.FileSet + ImportObjectFact func(obj types.Object, fact Fact) bool + ImportPackageFact func(pkg *types.Package, fact Fact) bool + OtherFiles []string + Pkg *types.Package + Report func(Diagnostic) + ResultOf map[*Analyzer]interface{} + TypesInfo *types.Info + TypesSizes types.Sizes + func (pass *Pass) ReportRangef(rng Range, format string, args ...interface{}) + func (pass *Pass) Reportf(pos token.Pos, format string, args ...interface{}) + func (pass *Pass) String() string + type Range interface + End func() token.Pos + Pos func() token.Pos + type RelatedInformation struct + End token.Pos + Message string + Pos token.Pos + type SuggestedFix struct + Message string + TextEdits []TextEdit + type TextEdit struct + End token.Pos + NewText []byte + Pos token.Pos