packagesinternal

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package packagesinternal exposes internal-only fields from go/packages.

Index

Constants

This section is empty.

Variables

View Source
var DepsErrors int // must be set as a LoadMode to call GetDepsErrors
View Source
var ForTest int // must be set as a LoadMode to call GetForTest
View Source
var GetDepsErrors = func(p interface{}) []*PackageError { return nil }
View Source
var GetForTest = func(p interface{}) string { return "" }
View Source
var GetGoCmdRunner = func(config interface{}) *gocommand.Runner { return nil }
View Source
var SetGoCmdRunner = func(config interface{}, runner *gocommand.Runner) {}
View Source
var SetModFile = func(config interface{}, value string) {}
View Source
var SetModFlag = func(config interface{}, value string) {}
View Source
var TypecheckCgo int

Functions

This section is empty.

Types

type PackageError added in v0.1.1

type PackageError struct {
	ImportStack []string // shortest path from package named on command line to this one
	Pos         string   // position of error (if present, file:line:col)
	Err         string   // the error itself
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL