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