iperf3exporter/vendor/github.com/gostaticanalysis/comment/passes/commentmap/commentmap.go
Marvin Preuss 2343c9588a
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
first commit
2021-10-20 10:08:56 +02:00

21 lines
432 B
Go

package commentmap
import (
"reflect"
"github.com/gostaticanalysis/comment"
"golang.org/x/tools/go/analysis"
)
var Analyzer = &analysis.Analyzer{
Name: "commentmap",
Doc: "create comment map",
Run: run,
RunDespiteErrors: true,
ResultType: reflect.TypeOf(comment.Maps{}),
}
func run(pass *analysis.Pass) (interface{}, error) {
return comment.New(pass.Fset, pass.Files), nil
}