package vgo

import "cmd/go/internal/vgo"

Index

Variables

var (
	MustBeVgo = mustBeVgo()

	ModRoot string

	Target module.Version
)
var CmdGet = &base.Command{
	UsageLine: "get [build flags] [packages]",
	Short:     "download and install versioned modules and dependencies",
	Long:      "" /* 648 byte string literal not displayed */,
}
var CmdVendor = &base.Command{
	UsageLine: "vendor [-v]",
	Short:     "vendor dependencies of current module",
	Long:      "" /* 289 byte string literal not displayed */,
}
var CmdVerify = &base.Command{
	UsageLine: "verify",
	Run:       runVerify,
	Short:     "verify downloaded modules against expected hashes",
	Long:      "" /* 364 byte string literal not displayed */,
}
var InstallHook func([]string)

Call into "go install". Set by internal/work, which imports us.

Functions

func AddImports

func AddImports(gofiles []string)

func AllPackages

func AllPackages(pattern string) []string

AllPackages returns all the packages that can be found under the $GOPATH directories and $GOROOT matching pattern. The pattern is either "all" (all packages), "std" (standard packages), "cmd" (standard commands), or a path including "...".

func BinDir

func BinDir() string

func Enabled

func Enabled() bool

func FindModulePath

func FindModulePath(dir string) (string, error)

Exported only for testing.

func FindModuleRoot

func FindModuleRoot(dir, limit string, legacyConfigOK bool) (root, file string)

Exported only for testing.

func ImportPaths

func ImportPaths(args []string) []string

func Init

func Init()

func InitMod

func InitMod()

func ListM

func ListM()

func ListMU

func ListMU()

func ListT

func ListT(pkgs []string)

func Lookup

func Lookup(parentPath, path string) (dir, realPath string, err error)

func MatchALL

func MatchALL() []string

MatchALL returns a list of the packages matching the pattern "ALL". The pattern "ALL" is like "all" but looks at all source files, even ones that would be ignored by current build tag settings. That's useful for identifying which packages to include in a vendor directory.

func MatchAll

func MatchAll() []string

MatchAll returns a list of the packages matching the pattern "all". We redefine "all" to mean start with the packages in the current module and then follow imports into other modules to add packages imported (directly or indirectly) as part of builds in this module. It does not include packages in other modules that are not needed by builds of this module.

func MatchPackages

func MatchPackages(pattern string) []string

MatchPackages returns a list of package paths matching pattern (see go help packages for pattern syntax).

func ModInfoProg

func ModInfoProg(info string) []byte

func PackageBuildInfo

func PackageBuildInfo(path string, deps []string) string

func PackageModuleInfo

func PackageModuleInfo(path string) *modinfo.ModulePublic

Source Files

build.go fetch.go get.go init.go list.go load.go search.go vendor.go verify.go

Version
v1.11.0-beta.1
Published
Jun 26, 2018
Platform
js/wasm
Imports
31 packages
Last checked
2 minutes ago

Tools for package owners.