packagesinternal

package
v0.0.0-...-c4ba228 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var GetForTest = func(p interface{}) string { return "" }
View Source
var GetGoCmdRunner = func(config interface{}) *gocommand.Runner { return nil }
View Source
var GetModule = func(p interface{}) *Module { return nil }
View Source
var SetGoCmdRunner = func(config interface{}, runner *gocommand.Runner) {}

Functions

This section is empty.

Types

type Module

type Module struct {
	Path      string       // module path
	Version   string       // module version
	Versions  []string     // available module versions (with -versions)
	Replace   *Module      // replaced by this module
	Time      *time.Time   // time version was created
	Update    *Module      // available update, if any (with -u)
	Main      bool         // is this the main module?
	Indirect  bool         // is this module only an indirect dependency of main module?
	Dir       string       // directory holding files for this module, if any
	GoMod     string       // path to go.mod file used when loading this module, if any
	GoVersion string       // go version used in module
	Error     *ModuleError // error loading module
}

Fields must match go list;

type ModuleError

type ModuleError struct {
	Err string // the error itself
}

Jump to

Keyboard shortcuts

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