github.com/pankona/gometalinter@v2.0.11+incompatible/_linters/src/mvdan.cc/interfacer/main.go (about)

     1  // Copyright (c) 2015, Daniel Martí <mvdan@mvdan.cc>
     2  // See LICENSE for licensing information
     3  
     4  package main // import "mvdan.cc/interfacer"
     5  
     6  import (
     7  	"flag"
     8  	"fmt"
     9  	"os"
    10  
    11  	"mvdan.cc/interfacer/check"
    12  )
    13  
    14  var _ = flag.Bool("v", false, "print the names of packages as they are checked")
    15  
    16  func main() {
    17  	flag.Parse()
    18  	lines, err := check.CheckArgs(flag.Args())
    19  	if err != nil {
    20  		fmt.Fprintln(os.Stderr, err)
    21  		os.Exit(1)
    22  	}
    23  	for _, line := range lines {
    24  		fmt.Println(line)
    25  	}
    26  }