You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-08 04:42:07 +03:00
Add cross-compilation Makefile targets and tar-based releases.
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.
This commit is contained in:
11
tools/vendor/github.com/mvdan/unparam/main.go
generated
vendored
11
tools/vendor/github.com/mvdan/unparam/main.go
generated
vendored
@@ -11,18 +11,11 @@ import (
|
||||
"github.com/mvdan/unparam/check"
|
||||
)
|
||||
|
||||
var (
|
||||
tests = flag.Bool("tests", true, "include tests")
|
||||
debug = flag.Bool("debug", false, "debug prints")
|
||||
)
|
||||
var tests = flag.Bool("tests", true, "include tests")
|
||||
|
||||
func main() {
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintln(os.Stderr, "usage: unparam [flags] [package ...]")
|
||||
flag.PrintDefaults()
|
||||
}
|
||||
flag.Parse()
|
||||
warns, err := check.UnusedParams(*tests, *debug, flag.Args()...)
|
||||
warns, err := check.UnusedParams(*tests, flag.Args()...)
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
|
Reference in New Issue
Block a user