visual studio code you are neither in a module nor in your gopath code example
Example: visual studio code you are neither in a module nor in your gopath
# for windows before starting visual studio code :
set GO111MODULE=on
# for windows before starting visual studio code :
set GO111MODULE=on