Following is my system configuration.
OS : Microsoft Windows 10 Enterprise
Go version: go version go1.15.7 windows/amd64
The program which I am trying to execute is as below
package main
import "fmt"
func main() {
fmt.Println("Hello World from Go")
}
The problem is I can compile and run a simple Hello world program from the command line but inside vscode it showed the error.
could not import fmt (cannot find package "fmt" in any of c:\go\src\fmt (from $GOROOT)
C:\Users\ameena\go\src\fmt (from $GOPATH))compiler
Am I missing here something ??
Regards Amit