Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModeAuto = "auto" ModeQEMU = "qemu" ModeFEX = "fex" ModeBox64 = "box64" )
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath() string
ConfigPath returns the persistent emulation preference path.
func NormalizeMode ¶
NormalizeMode canonicalizes user input.
func PreferredMode ¶
func PreferredMode() string
PreferredMode returns the effective user preference. Env wins over disk.
func SelectBest ¶
SelectBest chooses a safe default for this host from detection results.
Types ¶
type Config ¶
type Config struct {
Preferred string `json:"preferred"`
Selected string `json:"selected,omitempty"`
UpdatedAt time.Time `json:"updated_at"`
Results []Result `json:"results,omitempty"`
}
Config stores the user's preferred cross-architecture emulator.
Click to show internal directories.
Click to hide internal directories.