MacOS go-kit 自动生成代码工具 truss 安装
2021-11-29 本文已影响0人
Mr_窦先生
依赖安装
brew
因为访问 github
总是超时,所以我选择使用国内镜像源安装服务.
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
protoc
brew install protoc-gen-go
brew install protoc-gen-go-grpc
brew install protoc-gen-gogofaster
brew install protoc-gen-gogo
brew install protoc-gen-grpc-web
truss
开发过程中发现官网并不能满足项目需求,所以这是我自己调整后的版本,版本内新增了对
Request Header
的拓展。如果官网版本已经满足大家需求,使用官方版本即可。编译方式是一样的。
# 官网版本
# git clone https://github.com/metaverse/truss.git
# 调整过 request header 版本
git clone https://github.com/douchunrong/truss.git
cd truss
make dependencies
make