I\'ve been having a hard time trying to execute a simple golang program in a virtual machine powered by vagrant. These are the relevant fields of my go env:
go env
Using VS Code for GO, and faced the same issue. Saving the file 'Ctrl+S' on Windows fixed the issue.
Reference : Answered by Nico