gocmd

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModule

func GetModule(modulePath string, writer io.Writer) error

GetModule executes `go list -json -m` and writes the output to a given writer. See https://golang.org/ref/mod#go-list-m

func GetModuleGraph

func GetModuleGraph(modulePath string, writer io.Writer) error

GetModuleGraph executes `go mod graph` and writes the output to a given writer. See https://golang.org/ref/mod#go-mod-graph

func GetModules added in v0.4.0

func GetModules(modulePath string, writer io.Writer) error

GetModules executes `go list -json -m all` and writes the output to a given writer. See https://golang.org/ref/mod#go-list-m

func GetVendoredModules added in v0.4.0

func GetVendoredModules(modulePath string, writer io.Writer) error

GetVendoredModules executes `go mod vendor -v` and writes the output to a given writer. See https://golang.org/ref/mod#go-mod-vendor

func GetVersion

func GetVersion() (string, error)

GetVersion returns the version of Go in the environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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