Documentation
¶
Index ¶
Constants ¶
View Source
const (
GoModOnly = mod.GoModOnly
)
Variables ¶
View Source
var ( ErrNoModDecl = errors.New("no module declaration in gop.mod (or go.mod)") ErrNoModRoot = errors.New("gop.mod or go.mod file not found in current directory or any parent directory") )
Functions ¶
This section is empty.
Types ¶
type ExecCmdError ¶
func (*ExecCmdError) Error ¶
func (p *ExecCmdError) Error() string
type Module ¶
func Create ¶
Create creates a new module in `dir`. You should call `Save` manually to save this module.
func (Module) DepMods ¶
DepMods returns all depended modules. If a depended module path is replace to be a local path, it will be canonical to an absolute path.
Click to show internal directories.
Click to hide internal directories.