Skip to content

Commit 5d7f084

Browse files
authored
Prefix enums with type and convert to upper case (#41)
1 parent 9864f04 commit 5d7f084

File tree

26 files changed

+17387
-2186
lines changed

26 files changed

+17387
-2186
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ grpc: gogo-grpc
3636

3737
gogo-grpc: clean $(PROTO_OUT)
3838
printf $(COLOR) "Compiling for gogo-gRPC..."
39-
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc --proto_path=$(PROTO_IMPORT) --gogofaster_out=Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;)
39+
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc --proto_path=$(PROTO_IMPORT) --gogoslick_out=Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;)
4040

4141
gogo-protobuf: clean $(PROTO_OUT)
4242
printf $(COLOR) "Compiling for gogo-protobuf..."
@@ -69,7 +69,7 @@ grpc-install: gogo-protobuf-install
6969

7070
gogo-protobuf-install: go-protobuf-install
7171
printf $(COLOR) "Installing/updating gogo protobuf plugin..."
72-
go get -u github.com/gogo/protobuf/protoc-gen-gogofaster
72+
(cd && go get -u github.com/temporalio/gogo-protobuf/protoc-gen-gogoslick)
7373

7474
go-protobuf-install:
7575
printf $(COLOR) "Installing/updating go protobuf plugin..."

common/enum.pb.go

Lines changed: 128 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)