Skip to content

Commit

Permalink
Introduce a mechanism to generate protobuf
Browse files Browse the repository at this point in the history
We leverage go generate, the protobuf compiler, and shell to take the
proto files (in each directory), and then spit out *.pb.go files which
is our generated code.
Raghav Gulati committed Mar 23, 2018
1 parent 2290a08 commit 1bcb6f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/types/gen.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package types

//go:generate sh -c "protoc --proto_path=$GOPATH/src:. --gogoslick_out=. */*.proto"

0 comments on commit 1bcb6f7

Please sign in to comment.