Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuk7/wsllib-go

a wsl api library for golang
https://github.com/yuk7/wsllib-go

golang windows-10 windows-11 windows-subsystem-linux wsl

Last synced: 6 days ago
JSON representation

a wsl api library for golang

Awesome Lists containing this project

README

        

# wsllib-go
A WSL Library for Golang.

## Usage
Get this package
```
go get github.com/yuk7/wsllib-go
```

## Example
```go
package main

import "github.com/yuk7/wsllib-go"

func main() {
wsllib.WslLaunchInteractive("DistroName", "", true)
}
```

## Notes
WslLaunchInteractive is not used in this library as it causes problems in goroutine.

Instead, a function is defined to connect stdin, stdout, stderr to WslLaunch.