Git Product home page Git Product logo

chaos's Introduction

Chaos云原生微服务框架

2. 安装protoc-gen-go

go install github.com/golang/protobuf/protoc-gen-go@latest

3. 安装protoc-gen-go-grpc

go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

4. 安装stringer

go install golang.org/x/tools/cmd/stringer@latest

5. protoc-gen-gin工具安装(protobuf 生成gin模板)

  • 5.1 build生成工具
cd chaos/template
go build -o protoc-gen-gin.exe
  • 5.2 将protoc-gen-gin.exe拷贝至go_path的bin目录下

  • 5.3 protoc命令

protoc --proto_path=. --proto_path=../third_party --go_out=./test --go-grpc_out=./test --gin_out=./test test.proto

6. 生成error code工具

  • 6.1 build生成工具
cd chaos/cmd/chaos-codegen
go build -o chaos-codegen.exe
  • 6.2 chaos-codegen.exe拷贝至go_path的bin目录下

chaos's People

Contributors

chaos-ma avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.