by johnvega · 5y ago · 0 comments
Just 1 of many benefits: build native Windows GoLang app from WSL2: (Caddy server)
env GOOS=windows go build -o caddy.exe
No need to setup gcc in native Windows. Not sure if this works on all GoLang apps, but at least works for a reasonably complex Caddy server
Am I missing something? What does this have to do with WSL 2?
Working with GO on Windows can be a pain, but my takeaway from this ordeal was that it wasn't really the fault of MS or Google, but due to most Windows users actually having no idea how Windows works, even software developers who have been using the OS for 20 years.