tools

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(tools []string, opts ...InstallOption) error

Install installs passed tools to the caller's system.

The installation process can be configured by passing various installation options.

func Load

func Load(file string) ([]string, error)

Load analyzes the package file belongs to and returns all import paths of this package.

Types

type InstallOption

type InstallOption func(*installOpts)

InstallOption allows to configure the way Install installs tools.

func WithInstallCommand

func WithInstallCommand(cmd []string) InstallOption

WithInstallCommand allows to configure the command used to install the go tools.

This is useful for testing purposes. For all other cases the default "go install <pkg-name>" should be used.

func WithInstallEnv

func WithInstallEnv(vars map[string]string) InstallOption

WithInstallEnv allows to specify environment variables to set during the installation process.

Jump to

Keyboard shortcuts

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