[GoLang] 出現main redeclared in this block
在我的案例中
Build 時遇到 "main redeclared in this block"
直接去請教google大神,他給了這篇"学习go语言碰到的问题:main redeclared in this block"
才發現,2個Go source file不能同時存在於同一個資料夾裡
將另一個檔案去另一個資料夾後就可以正常的編譯了
-------
有任何錯誤歡迎指正,Thanks
Build 時遇到 "main redeclared in this block"
直接去請教google大神,他給了這篇"学习go语言碰到的问题:main redeclared in this block"
才發現,2個Go source file不能同時存在於同一個資料夾裡
將另一個檔案去另一個資料夾後就可以正常的編譯了
-------
有任何錯誤歡迎指正,Thanks
留言
張貼留言