goenv

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoGoMod is returned when no GOMOD value could be identified.
	ErrNoGoMod = errors.New("`go env GOMOD` returned a blank string")
)

Functions

func GOMOD

func GOMOD(dir string) (string, error)

GOMOD returns the current GOMOD environment variable (from running `go env GOMOD`).

func GoBinPath

func GoBinPath() (string, error)

GoBinPath returns the resolved path to the `go` command's binary. The result is cached to avoid looking it up multiple times. If the lookup fails, the error is returned and the result is not cached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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