https://www.zhihu.com/question/486786946/answer/2723663432
注意一定要安裝最新版,否則不容易debug
//main.go
package main //說明hello.go這個文件在main這個包中
import "fmt" //導入內置包,可以使用其中函數等
func main() {
fmt.Println("Hello World!")
}
上面弄完之後.
go mod init aaa
go mod tidy
然後就可以debug了.