準備深飄的第一天:Go語言

Go語言中沒有項目的說法,都是說包。 GoRoot:Go語言的安裝目錄 我的 E:/tool/go GoPath:Go語言的工作目錄   問題1: warning: GOPATH set to GOROOT (E:\Tools\go) has no effect go run: cannot run non-main package   解決方案: 建一個main包,程序入口放在main包下。  
相關文章
相關標籤/搜索