package modget

import "cmd/go/internal/modget"

Package modget implements the module-aware “go get” command.

Index

Variables

var CmdGet = &base.Command{

	UsageLine: "get [-d] [-m] [-u] [-v] [-insecure] [build flags] [packages]",
	Short:     "add dependencies to current module and install them",
	Long:      "" /* 4545 byte string literal not displayed */,
}
var HelpModuleGet = &base.Command{
	UsageLine: "module-get",
	Short:     "module-aware go get",
	Long: "" /* 275 byte string literal not displayed */+
		CmdGet.UsageLine + `
` + CmdGet.Long,
}

Note that this help text is a stopgap to make the module-aware get help text available even in non-module settings. It should be deleted when the old get is deleted. It should NOT be considered to set a precedent of having hierarchical help names with dashes.

Types

type Pkg

type Pkg struct {
	Arg  string
	Path string
	Vers string
}

Source Files

get.go

Version
v1.11.0-beta.2
Published
Jul 19, 2018
Platform
linux/amd64
Imports
18 packages
Last checked
11 seconds ago

Tools for package owners.