generate.sh 151 B

1234567
  1. #!/bin/sh
  2. # generate .pb.go file from .proto file.
  3. set -e
  4. protoc --go_out=plugins=grpc:. test.proto
  5. echo '//go:generate ./generate.sh
  6. ' >> test.pb.go