1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Package packagesinternal exposes internal-only fields from go/packages.
6 package packagesinternal
9 "golang.org/x/tools/internal/gocommand"
12 var GetForTest = func(p interface{}) string { return "" }
13 var GetDepsErrors = func(p interface{}) []*PackageError { return nil }
15 type PackageError struct {
16 ImportStack []string // shortest path from package named on command line to this one
17 Pos string // position of error (if present, file:line:col)
18 Err string // the error itself
21 var GetGoCmdRunner = func(config interface{}) *gocommand.Runner { return nil }
23 var SetGoCmdRunner = func(config interface{}, runner *gocommand.Runner) {}
27 var SetModFlag = func(config interface{}, value string) {}
28 var SetModFile = func(config interface{}, value string) {}