Marvin Preuss
1d4ae27878
All checks were successful
continuous-integration/drone/push Build is passing
16 lines
246 B
Go
16 lines
246 B
Go
// +build go1.6,!go1.9
|
|
|
|
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
|
|
}
|