Skip to content

goravel/example-proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-proto

Provide proto for goravel/example

# 1. Install Protocol Tools

- [protoc@libprotoc](https://grpc.io/docs/protoc-installation/): Generate proto files.
  - check the version by `protoc --version`
- [protoc-gen-go](https://grpc.io/docs/languages/go/quickstart/#prerequisites): Generate go files from proto files.
  - `go install google.golang.org/protobuf/cmd/protoc-gen-go@latest`
  - check the version by `protoc-gen-go --version`
- [protoc-gen-go-grpc](https://grpc.io/docs/languages/go/quickstart/#prerequisites): Generate go grpc files from proto 
  files.
  - `go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest`
  - check the version by `protoc-gen-go-grpc --version`

# 2. Generate proto files
protoc --go_out=. --go-grpc_out=. *.proto

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published