wslpath

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("mount not found")
	ErrInvalid  = errors.New("invalid path")
)

Functions

func FromWindows

func FromWindows(p string) (string, error)

Convert Windows path like "C:\Windows\System32" to a WSL one like "/mnt/c/Windows/System32".

func ToWindows

func ToWindows(p string) (string, error)

Convert WSL path like "/mnt/c/Windows/System32" to a Windows one like "C:\Windows\System32".

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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