I got this error when I pressed F5 in VSCode with a _test.go file open. When I switched to a non-test file, I could run the program just fine.
_test.go