GoWSL
GoWSL copied to clipboard
Only Compiles on Windows and Linux
At the moment, file suffixes are used to denote build targets. Using build tags would allow this to be expanded on all operating systems that go supports.
As a start, the files ending in _windows.go would need to add //go:build windows at the start of the file. And then all of the files ending in _linux.go would need to add //go:build !windows at the start of the file.
You might need to change the file suffixes as well. I don't know for sure if the file suffixes take priority over the build targets.
What's the reasoning behind attempting to run this outside of Windows or Linux? We use Linux for some testing. WSL is a Windows-specific feature.