I have started to do some work with Go lang recently and having sevral different
GOPATH:s is a bit messy. So I decided to look into having a virtual dev environment.
How to use it:
- Install Vagrant
- Copy it to your local folder that you want to use for your GOPATH.
vagrant upto setup the virtual machine including installing GO and setting the correct environmental variables.
vagrant sshto ssh into the machine
cd $GOPATHwill take you to the shared folder with your host machine.
- Start coding
I decided to go this way since I like to use my local machine where I have all my editors and helpers setup just the way I like it. Hope that it will help you and feel free to change it anyway you like.