GoLand的各種報錯

報錯1:Main file has non-main package or doesn’t contain main function

Error: Run after build is not possible Main file has non-main package or doesn't contain main function

在這裏插入圖片描述
在這裏插入圖片描述

報錯2:goland invalid vcs root mapping

在這裏插入圖片描述
設置下Project GOPATH就可以了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章