美文网首页go-kitMacOS 部署
MacOS go-kit 自动生成代码工具 truss 安装

MacOS go-kit 自动生成代码工具 truss 安装

作者: Mr_窦先生 | 来源:发表于2021-11-29 09:06 被阅读0次

    依赖安装

    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
    
    

    测试

    truss-h.png

    完成安装

    相关文章

      网友评论

        本文标题:MacOS go-kit 自动生成代码工具 truss 安装

        本文链接:https://www.haomeiwen.com/subject/jfbkxrtx.html