Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnableToGuessGnoRoot = errors.New("gno was unable to determine GNOROOT. Please set the GNOROOT environment variable")
Functions ¶
func GuessRootDir ¶
GuessRootDir attempts to determine the Gno root directory using various strategies: 1. First, It tries to obtain it from the `GNOROOT` environment variable. 2. If the env variable isn't set, It checks if `_GNOROOT` has been previously determined or set with -ldflags. 3. If not, it uses the `go list` command to infer from go.mod. 4. As a last resort, it determines `GNOROOT` based on the caller stack's file path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.