Go: cmd/go/internal/modget Index | Files

package modget

import "cmd/go/internal/modget"

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


Package Files



var CmdGet = &base.Command{

    UsageLine: "go get [-d] [-t] [-u] [-v] [-insecure] [build flags] [packages]",
    Short:     "add dependencies to current module and install them",
    Long:      "" /* 6126 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.

Package modget imports 18 packages (graph) and is imported by 4 packages. Updated 2021-01-22. Refresh now. Tools for package owners.