2 ms·
I am trying to help a Windows-using team ramp-up on Go dev, and it's pretty rough. Currently my advice to them is ditch VS Code and download GoLand, the editor
by astockwell 7y ago
I am trying to help a Windows-using team ramp-up on Go dev, and it's pretty rough.
Currently my advice to them is ditch VS Code and download GoLand, the editor change is jarring but the experience is much more fluid on Windows overall. Also transparent support for modules, per project.
For compiling when your code (or a package you're using, e.g. sqlite) has a cgo dependency - afaik YES you will need to go down the dark road of cygwin/Mingw, if you want your development cycle to be at all normal... and even then, my observation is compilation times are an order of magnitude slower on Windows :(
At GopherCon I met folks who worked for huge, "old guard" Windows companies who said "just run a linux VM" to develop in Go.
If you just need to compile for windows once and a while (e.g. for releases only, not as part of your normal dev cycle), check out xgo [1], which uses docker to deal with all the cgo mess. No cygwin/Mingw to install/worry about.
Best of luck! If anyone else has tips for working in Windows, I'd also love to hear them.
[1] https://github.com/karalabe/xgo https://github.com/karalabe/xgo
- DuskStar 7y agoPersonal recommendation, if you need to stay on windows and don't want GoLand - set it up to use wsl 'remotely' [0]. All the offline ability of a local environment, but with the software compatibility (and ecosystem) of linux. (That being said, GoLand has been great on both Windows and Mac for me - the only thing VSCode does that GoLand doesn't is remote dev, and that's supposedly coming soon™ [1]) 0: https://code.visualstudio.com/docs/remote/wsl https://code.visualstudio.com/docs/remote/wsl 1: https://blog.jetbrains.com/go/2019/08/15/2019-3-roadmap/ https://blog.jetbrains.com/go/2019/08/15/2019-3-roadmap/
- zubspace 7y agoThanks for your feedback. GoLand looks really nice (like everything from JetBrains), but the price is a bit steep for just playing around once in a while. But I'll keep it in mind. I'll try the WSL Route and see how it goes. (VSCode already made me install that extension.)