Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
a wsl api library for golang
- Host: GitHub
- URL: https://github.com/yuk7/wsllib-go
- Owner: yuk7
- License: mit
- Created: 2021-12-01T03:21:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-10T01:00:38.000Z (5 months ago)
- Last Synced: 2024-09-28T22:43:38.645Z (4 months ago)
- Topics: golang, windows-10, windows-11, windows-subsystem-linux, wsl
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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 mainimport "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.