mirror of https://github.com/golang/go.git
go/packages: fix doc for NeedExportsFile
It actually adds the ExportFile field on Package, not the ExportsFile field. (The ExportsFile field, with an "s" doesn't exist). Fixes golang/go#36302 Change-Id: I7f4d82f4d536078d2fa383e9a893a463c1926488 Reviewed-on: https://go-review.googlesource.com/c/tools/+/215980 Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
parent
593de60622
commit
45e69182d1
|
|
@ -35,6 +35,9 @@ import (
|
|||
// Load may return more information than requested.
|
||||
type LoadMode int
|
||||
|
||||
// TODO(matloob): When a V2 of go/packages is released, rename NeedExportsFile to
|
||||
// NeedExportFile to make it consistent with the Package field it's adding.
|
||||
|
||||
const (
|
||||
// NeedName adds Name and PkgPath.
|
||||
NeedName LoadMode = 1 << iota
|
||||
|
|
@ -52,7 +55,7 @@ const (
|
|||
// NeedDeps adds the fields requested by the LoadMode in the packages in Imports.
|
||||
NeedDeps
|
||||
|
||||
// NeedExportsFile adds ExportsFile.
|
||||
// NeedExportsFile adds ExportFile.
|
||||
NeedExportsFile
|
||||
|
||||
// NeedTypes adds Types, Fset, and IllTyped.
|
||||
|
|
|
|||
Loading…
Reference in New Issue