Source file src/cmd/vet/main.go
1 // Copyright 2012 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 import ( 8 "cmd/internal/objabi" 9 "cmd/internal/telemetry/counter" 10 11 "golang.org/x/tools/go/analysis/suite/vet" 12 "golang.org/x/tools/go/analysis/unitchecker" 13 ) 14 15 func main() { 16 // Keep consistent with cmd/fix/main.go! 17 counter.Open() 18 objabi.AddVersionFlag() 19 counter.Inc("vet/invocations") 20 21 unitchecker.Main(vet.Suite...) // (never returns) 22 } 23