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
16 lines
239 B
Go
16 lines
239 B
Go
// +build go1.6
|
|
|
|
package gotool
|
|
|
|
import (
|
|
"go/build"
|
|
"path/filepath"
|
|
"runtime"
|
|
)
|
|
|
|
var gorootSrc = filepath.Join(runtime.GOROOT(), "src")
|
|
|
|
func shouldIgnoreImport(p *build.Package) bool {
|
|
return p == nil || len(p.InvalidGoFiles) == 0
|
|
}
|