...

Source file src/cmd/go/internal/modcmd/mod.go

Documentation: cmd/go/internal/modcmd

     1  // Copyright 2018 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package modcmd implements the “go mod” command.
     6  package modcmd
     7  
     8  import (
     9  	"cmd/go/internal/base"
    10  )
    11  
    12  var CmdMod = &base.Command{
    13  	UsageLine: "go mod",
    14  	Short:     "module maintenance",
    15  	Long: `Go mod provides access to operations on modules.
    16  
    17  Note that support for modules is built into all the go commands,
    18  not just 'go mod'. For example, day-to-day adding, removing, upgrading,
    19  and downgrading of dependencies should be done using 'go get'.
    20  See 'go help modules' for an overview of module functionality.
    21  	`,
    22  
    23  	Commands: []*base.Command{
    24  		cmdDownload,
    25  		cmdEdit,
    26  		cmdGraph,
    27  		cmdInit,
    28  		cmdTidy,
    29  		cmdVendor,
    30  		cmdVerify,
    31  		cmdWhy,
    32  	},
    33  }
    34  

View as plain text