Change-Id: I6ad9a51ab617f8e7b741f2ac6af4c31f152fc7a8
This commit is contained in:
qiulaidongfeng 2024-05-17 06:10:20 +08:00
parent 92885ce610
commit c664b5332e
1 changed files with 1 additions and 1 deletions

View File

@ -669,7 +669,7 @@ func LoadPackage(ctx context.Context, opts PackageOpts, path, srcDir string, stk
// with ./ or ../). A local relative path is interpreted relative to srcDir.
// It returns a *Package describing the package found in that directory.
// loadImport does not set tool flags and should only be used by
// this package, as part of a bigger load operation, and by GOPATH-based "go get".
// this package, as part of a bigger load operation.
// The returned PackageError, if any, describes why parent is not allowed
// to import the named package, with the error referring to importPos.
// The PackageError can only be non-nil when parent is not nil.