Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnableToGuessGnoBuiltin = errors.New("gno was unable to determine GNOBUILTIN. Please set the GNOBUILTIN environment variable")
Functions ¶
func BuiltinDir ¶
func BuiltinDir() string
BuiltinDir guesses the Gno builtin directory and panics if it fails.
func GnoBuiltin ¶
func GuessBuiltinDir ¶
GuessBuiltinDir attempts to determine the Gno builtin directory using various strategies: 1. First, It tries to obtain it from the `GNOBUILTIN` environment variable. 2. If the env variable isn't set, It checks if `_GNOBUILTIN` 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 `GNOBUILTIN` based on the caller stack's file path.
func IsGnoBuiltin ¶
`IsGnoBuiltin` try to guess if the given object is a gno builtin. XXX: Since we cannot define true Go built-in types, we have to infer them in other ways
Types ¶
This section is empty.