Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
func Find() string
Find returns the GOROOT value, using either an explicitly provided environment variable, a GOROOT that contains the current os.Executable value, or else the GOROOT that the binary was built with from runtime.GOROOT().
This function is a heavily modified version of the following: https://github.com/golang/go/blob/89044b6d423a07bea3b6f80210f780e859dd2700/src/cmd/go/internal/cfg/cfg.go#L369
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.