Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadOptions ¶
type LoadOptions struct {
Dir string
Overlay overlay.Overlay
Mod string
IncludeTest bool
ModFile string // -modfile flag
Deps bool // -deps flag
// OverlayFile is passed to `go list -overlay=` during package discovery.
// Overlay (in-memory) is used only when reading/parsing file contents.
// Callers that rely on go.mod replacements visible only through an overlay
// (e.g. doctest vendor-gomod bridges) must set OverlayFile or discovery
// returns Incomplete packages with empty GoFiles.
OverlayFile string
// max file size to parse
// if file size is larger than this
// see https://github.com/xhd2015/xgo/issues/303
// for more background
MaxFileSize int64
Goroot string
FilterErrorFile bool
Fset *token.FileSet
}
Click to show internal directories.
Click to hide internal directories.