workgroups/vendor/github.com/kisielk/gotool/go16-18.go

16 lines
246 B
Go
Raw Permalink Normal View History

2021-09-24 17:34:17 +02:00
// +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
}