Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotWSL = errors.New("not running inside WSL")
View Source
var IsWSL = sync.OnceValue(func() bool { if _, exists := os.LookupEnv("WSL_DISTRO_NAME"); exists { return true } _, err := os.Stat("/proc/sys/fs/binfmt_misc/WSLInterop") return err == nil })
IsWSL returns true if running inside Windows Subsystem for Linux
Functions ¶
func LocalAppData ¶
func UserProfile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.