问题遇到的现象和发生背景
vscode 配置完go语言环境后仍然无法运行程序
用代码块功能插入代码,请勿粘贴截图
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
}
运行结果及报错内容
DAP server listening at: 127.0.0.1:63740
Build Error: go build -o c:\Users\86139\Desktop\go__debug_bin.exe -gcflags all=-N -l .
go: go.mod file not found in current directory or any parent directory; see 'go help modules' (exit status 1)