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. 6package modcmd 7 8import ( 9 "cmd/go/internal/base" 10) 11 12var CmdMod = &base.Command{ 13 UsageLine: "go mod", 14 Short: "module maintenance", 15 Long: `Go mod provides access to operations on modules. 16 17Note that support for modules is built into all the go commands, 18not just 'go mod'. For example, day-to-day adding, removing, upgrading, 19and downgrading of dependencies should be done using 'go get'. 20See '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