草庐IT

chaochaogege

全部标签

go - 将 Golang1.11 与模块一起使用时,Protobuf 导入 "cannot find file"

我使用的是支持模块的Golang1.11,所以我的项目没有放入$GOPATH我想编译proto文件,我的文件结构我的TaskInfo.protosyntax="proto3";packagechaochaogege.filecatcher.common;optiongo_package="common";import"chaochaogege.com/filecatcher/common/ChunkInfo.proto";messageTaskInfo{stringname=1;stringstorePath=2;uint32workersNum=3;uint32totalSize=4