1 2 3 4 5 6 7 8 9 10 11 12 13 14
package reqwithoutctx import ( "golang.org/x/tools/go/analysis" ) func Run(pass *analysis.Pass) (interface{}, error) { analyzer := NewAnalyzer(pass) reports := analyzer.Exec() report(pass, reports) return nil, nil }