internal/cmd/asmdecl: standalone asmdecl checker

Updates #24
This commit is contained in:
Michael McLoughlin
2019-01-13 11:40:44 -08:00
parent cdf63e263d
commit a23fe8ee57
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
// Command asmdecl reports mismatches between assembly files and Go declarations.
//
// Standalone version of the static analyzer in go vet.
package main
import (
"golang.org/x/tools/go/analysis/passes/asmdecl"
"golang.org/x/tools/go/analysis/singlechecker"
)
func main() { singlechecker.Main(asmdecl.Analyzer) }