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:
28
tools/vendor/mvdan.cc/lint/lint.go
vendored
Normal file
28
tools/vendor/mvdan.cc/lint/lint.go
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright (c) 2017, Daniel Martí <mvdan@mvdan.cc>
|
||||
// See LICENSE for licensing information
|
||||
|
||||
// Package lint defines common interfaces for Go code checkers.
|
||||
package lint // import "mvdan.cc/lint"
|
||||
|
||||
import (
|
||||
"go/token"
|
||||
|
||||
"golang.org/x/tools/go/loader"
|
||||
"golang.org/x/tools/go/ssa"
|
||||
)
|
||||
|
||||
// A Checker points out issues in a program.
|
||||
type Checker interface {
|
||||
Program(*loader.Program)
|
||||
Check() ([]Issue, error)
|
||||
}
|
||||
|
||||
type WithSSA interface {
|
||||
ProgramSSA(*ssa.Program)
|
||||
}
|
||||
|
||||
// Issue represents an issue somewhere in a source code file.
|
||||
type Issue interface {
|
||||
Pos() token.Pos
|
||||
Message() string
|
||||
}
|
Reference in New Issue
Block a user