golangx

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoBin

func GoBin() string

GoBin returns the path to the go binary.

func GoInstall

func GoInstall(repository string) error

GoInstall is a functionx that installs a package from a remote repository. returns an error if something goes wrong.

func GoModCache added in v0.1.12

func GoModCache() string

GoModCache returns the path of Go module cache.

func GoPath

func GoPath() string

GoPath returns the GOPATH.

func GoProxy

func GoProxy() string

GoProxy returns the proxy setting for go. if not set, return a default proxy setting: "https://goproxy.cn,direct".

func GoRoot

func GoRoot() string

GoRoot returns the GOROOT.

func GoVersion

func GoVersion() string

GoVersion returns the go version.

func IsGO111ModuleOn

func IsGO111ModuleOn() bool

IsGO111ModuleOn returns true if go111module is set to on.

func SearchGoMod added in v0.1.15

func SearchGoMod(cwd string) (moduleName, path string, found bool)

Types

This section is empty.

Directories

Path Synopsis
tools

Jump to

Keyboard shortcuts

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