Versions in this module Expand all Collapse all v0 v0.4.1 Aug 2, 2022 Changes in this version + const StateBuildActionGraph + const StateFinalizing + const StateInitializing + const StateLoadPackageGraph + const StateProcessing + type Diagnostic struct + Category string + End token.Position + Message string + Position token.Position + Related []RelatedInformation + SuggestedFixes []SuggestedFix + type RelatedInformation struct + End token.Position + Message string + Position token.Position + type Result struct + Config config.Config + Errors []error + Failed bool + Initial bool + Package *loader.PackageSpec + Skipped bool + func (r Result) Load() (ResultData, error) + func (r Result) LoadTest() (TestData, error) + type ResultData struct + Diagnostics []Diagnostic + Directives []SerializedDirective + Unused unused.SerializedResult + type Runner struct + FallbackGoVersion string + GoVersion string + Stats Stats + TestMode bool + func New(cfg config.Config, c *cache.Cache) (*Runner, error) + func (r *Runner) ActiveWorkers() int + func (r *Runner) Run(cfg *packages.Config, analyzers []*analysis.Analyzer, patterns []string) ([]Result, error) + func (r *Runner) TotalWorkers() int + type SerializedDirective struct + Arguments []string + Command string + DirectivePosition token.Position + NodePosition token.Position + type Stats struct + PrintAnalyzerMeasurement func(*analysis.Analyzer, *loader.PackageSpec, time.Duration) + func (s *Stats) InitialPackages() int + func (s *Stats) ProcessedInitialPackages() int + func (s *Stats) ProcessedPackages() int + func (s *Stats) State() int + func (s *Stats) TotalPackages() int + type SuggestedFix struct + Message string + TextEdits []TextEdit + type TestData struct + Facts []TestFact + Files []string + type TestFact struct + Analyzer string + FactString string + ObjectName string + Position token.Position + type TextEdit struct + End token.Position + NewText []byte + Position token.Position