Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just ran my local go project in WSL. And I can confirm it works just like it does in Linux. This is huge for everyone!


Along those lines, a great trick for Go on Windows is to set your $GOPATH outside of the WSL filesystem, so you're developing in, e.g. /mnt/c/. This gives you full access in both Windows and Linux to your Go project, so if you need to open a file in Photoshop, etc. it's painless.


I seem to miss the point why this is huge. Why can't the project compiled for Windows in first place? Are there System specific calls?


I like to do my Go development in a Linux environment. So if I wanted to use Windows as my main OS, I'd have to either dual boot or use a VM. Now I can just develop directly in WSL.

A lot of people like to also develop in an environment they are going to deploy in. In my case I have some linux specific path in my code.

I am also running now Gogland Linux version through WSL.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: