tangs b030ce89ca openbilibili | 5 gadi atpakaļ | |
---|---|---|
.. | ||
generator | 5 gadi atpakaļ | |
goparser | 5 gadi atpakaļ | |
types | 5 gadi atpakaļ | |
BUILD | 5 gadi atpakaļ | |
CHANGELOG.md | 5 gadi atpakaļ | |
CONTRIBUTORS.md | 5 gadi atpakaļ | |
Makefile | 5 gadi atpakaļ | |
OWNERS | 5 gadi atpakaļ | |
README.md | 5 gadi atpakaļ | |
main.go | 5 gadi atpakaļ | |
protoc.sh | 5 gadi atpakaļ |
platform/go-common 仓库 pb 文件生成工具
默认使用 gofast, 可以使用 PROTOC_GEN 环境变量指定.
默认 Proto Import Path 为 go-common 目录, go-common/vendor 目录, /usr/local/include 以及proto文件所在目录, 可以通过 PROTO_PATH 环境变量指定.
# 如果你只有一个 GOPATH 的话
ln -s ${GOPATH}/src/go-common/app/tool/warden/protoc.sh /usr/local/bin/protoc.sh && chmod +x /usr/local/bin/protoc.sh
> cd {proto 文件所在目录}
> protoc.sh