micro-examples/grpc/generate.go
Vasiliy Tolstov a46561f48a add grpc server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-11-28 13:19:46 +03:00

6 lines
403 B
Go

package main
//go:generate sh -c "protoc -I./proto -I. -I$(go list -f '{{ .Dir }}' -m go.unistack.org/micro-proto/v3) --go_out=paths=source_relative:./proto proto/example.proto"
//go:generate sh -c "protoc -I./proto -I. -I$(go list -f '{{ .Dir }}' -m go.unistack.org/micro-proto/v3) --go-micro_out=components='micro|grpc',debug=true,tag_path=./proto,paths=source_relative:./proto proto/example.proto"