Why does VS Code not auto-import packages using Go?
Hi I am new to Go and currently use VS Code as IDE.
I am totally new to back-end development and I am trying to use Go for the job.
While I was teaching myself via Youtube, I faced a problem.
The p...
https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196
Stack Overflow
Hi I am new to Go and currently use VS Code as IDE.

I am totally new to back-end development and I am trying to use Go for the job.

While I was teaching myself via Youtube, I faced a problem.

The problem is that the VS Code does not auto-import any package made by me.

I don't know why but I did get some clues about it.

My Guess

My editor does not recognize the location of the package

also my projects are located at C:\Users\John\Desktop\GoProjects while the gopath=C:\Users\John\go and the goroot=c:\go

Can anyone give me a solution to this?