2
Bascially,在client.go我導入包這樣奇怪的編譯錯誤說「不可建圍棋源文件」
pb "github.com/wilbyang/gotham-grpc/search"
,當我嘗試運行去跑client.go,我得到的錯誤:
no buildable Go source files in /Users/wilbyang/goPath/src/github.com/wilbyang/gotham-grpc/search".
我GOPATH是:
"/Users/wilbyang/goPath/".
而且我相信DIR $GOPATH/src/github.com/wilbyang/gotham-grpc/search
存在,並且DIR下10存在,由protoc和包作爲搜索生成。我真的不明白爲什麼,並與它鬥爭了好幾個小時!任何人都會帶我離開這個嗎?
這可能是文件中的語法錯誤。 – I159
'search.pb.go'文件中的軟件包名稱是什麼? – JimB
包名是'搜索' – David