Setup Golang on WSL2

How do I setup Golang on wsl2 on windows machine

Install on your wsl a Linux distribution (for example Ubuntu, see the store for this) and follow the procedure for Linux systems.

https://golang.org/doc/install

However if you feel uncomfortable to work in server mode you can install Go ecosystem on the main machine and deploy the binaries to Linux environment.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.