I am new in golang.
i can not start my go file in VSCODE ,my code is simple
package main
import "fmt"
func main() {
fmt.Println("test")
}
when i run go run main.go in my terminal every thing works fine but when i save it in my vscode i get too many errors all like
/work/src/golang.org/x/net/webdav/prop_test.go:217: encoding/xml.Name composite literal uses unkeyed fields
my main.go file located at /work
how can i solve the problem ?