gomod

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module represents a Go module instance

func NewModule

func NewModule(path string) *Module

NewModule initializes a module object. Path must reference a go.mod file

func (*Module) Files

func (m *Module) Files() []string

Files returns a list of files and directories that belong to the vendor tool.

func (*Module) FullUpdate

func (m *Module) FullUpdate() (bool, error)

FullUpdate updates the dependencies in the go.mod file the lastest minor or patch release. True is returned if at least one dependency was updated, otherwise false.

func (*Module) SafeUpdate

func (m *Module) SafeUpdate() (bool, error)

SafeUpdate updates the dependencies in the go.mod file to the lastest minor release. True is returned if at least one dependency was updated, otherwise false.

func (*Module) VendorDependencies

func (m *Module) VendorDependencies() error

VendorDependencies downloads the dependencies into the vendor/ directory. If the directory already exist, it is updated to represent the information in the go.mod file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL