Golang error: go.mod file not found in current directory

Today when I was compiling a Go program, I got the following error: I checked the environment variables to see if the Go execution path is set. It appears that VS Cod was not able to find the compiler. I run the following command. After that, I checked the environment variables again. Now the program …

Golang error: go.mod file not found in current directory Read More »