Package main error reported in Go language vscode [Solved]

Article directory

foreword

I even deleted the go path and environment and tried it again and still reported the error as shown in the picture below.
insert image description here
It seems that there are really few articles about this problem, and I tried everything everyone said, but it didn’t work, so I had to translate it myself and debug it.

problem solved

I studied it carefully and reported an error, which seems to say that the file was not found in the decompression path of go
insert image description here

I'll just make a copy of the past for you,
insert image description here
that's fine, although theoretically, the search shouldn't be the src file under the environment GOPATH? But I can even run this go file says no problem for now? ! If there is a problem with studying later, I will update it when I come back
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/m0_65431212/article/details/129644038