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.
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.
Click to show internal directories.
Click to hide internal directories.