wsl

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotWSL = errors.New("not running inside WSL")

Functions

func IsWSL

func IsWSL() bool

IsWSL returns true if running inside Windows Subsystem for Linux

func WSLAppDataRoot

func WSLAppDataRoot() (string, error)

parent directory of %AppData% and %LocalAppData%

func WindowsUsername

func WindowsUsername() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL