gopath

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureGopathBin

func EnsureGopathBin() error

EnsureGopathBin ensures that GOPATH/bin exists and is in PATH. Detects if this is an Azure CI build and exports the updated PATH.

func GOPATH

func GOPATH() string

GOPATH returns the current GOPATH.

func GetGopathBin

func GetGopathBin() string

GetGopathBin returns GOPATH/bin.

func UseTempGopath

func UseTempGopath() (error, func())

UseTempGopath sets the current GOPATH environment variable to a temporary directory, returning a cleanup function which reverts the change.

Types

This section is empty.

Jump to

Keyboard shortcuts

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