tuanpham197 / test_repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate proto

Document quick start

Documentation

Run generate proto for comment

protoc --proto_path=./ --go_out=./comment --go_opt=paths=source_relative \
    --go-grpc_out=./comment --go-grpc_opt=paths=source_relative \
    comment.proto

Run generate proto for logger

protoc --proto_path=./ --go_out=./logger --go_opt=paths=source_relative \
    --go-grpc_out=./logger --go-grpc_opt=paths=source_relative \
    logger.proto

Run generate proto for address

protoc --proto_path=./ --go_out=./address --go_opt=paths=source_relative \
    --go-grpc_out=./address --go-grpc_opt=paths=source_relative \
    address.proto

Add tag version for pkg

  1. Add tag
git tag v0.1.0
  1. Push
git push origin v0.1.0
  1. Go git update
go get -u github.com/tuanpham197/test_repo@v0.5.6

About