Revamp the build system to be more inline with other Prometheus exporters. Notably add Darwin and Windows build targets, and add support for releases using tar files.
27 lines
478 B
Go
27 lines
478 B
Go
// Copyright (c) 2015, Daniel Martí <mvdan@mvdan.cc>
|
|
// See LICENSE for licensing information
|
|
|
|
package main // import "mvdan.cc/interfacer"
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"os"
|
|
|
|
"mvdan.cc/interfacer/check"
|
|
)
|
|
|
|
var _ = flag.Bool("v", false, "print the names of packages as they are checked")
|
|
|
|
func main() {
|
|
flag.Parse()
|
|
lines, err := check.CheckArgs(flag.Args())
|
|
if err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
for _, line := range lines {
|
|
fmt.Println(line)
|
|
}
|
|
}
|