版权声明:原创文章欢迎转载,不过要记得加出处哦 https://blog.csdn.net/wljk506/article/details/86324984
Go-kit官网
Go-kit 更便捷的使用方式: truss 使用
https://github.com/gitwak/truss#install
1.安装protoc 3或最新版本
从 https://github.com/google/protobuf/releases
下载相对应的版本
这里的系统是Mac 系统
下载
protoc-3.6.1-osx-x86_64.zip
然后解压缩.把解压缩后的文件复制到对应得目录中
bin
下文件复制到/usr/local/bin
下
include
下文件复制到/usr/local/include
下
2. truss 安装
go get -u -d github.com/tuneinc/truss
cd $GOPATH/src/github.com/tuneinc/truss
make dependencies
make