Generate pre-defined golang grpc handlers with test suite from protobuf file.
- Generate snake cased handler files with test (
xxx_handler.go
,xxx_handler_test.go
) - Fill empty handler and test suite
- Clone the repo
- Run
go install
- Now you can run
handlergen
Usage of handlergen:
-i <path>
protobuf file path to generate
-o <dir>
write output to <dir>
$ handlergen -i ./sample.proto -o ./