Skip to content

Commit

Permalink
feat: add prototext generator
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <[email protected]>
  • Loading branch information
paralin committed Apr 22, 2024
1 parent ab7a6a5 commit e988a0e
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ genproto: vendor node_modules $(GOIMPORTS) $(PROTOWRAP) $(PROTOC_GEN_GO) $(PROTO
--plugin=./node_modules/.bin/protoc-gen-es \
--plugin=./node_modules/.bin/protoc-gen-es-starpc \
--go-lite_out=$${OUT} \
--go-lite_opt=features=marshal+unmarshal+size+equal+json+clone \
--go-lite_opt=features=marshal+unmarshal+size+equal+clone+text+json \
--go-starpc_out=$${OUT} \
--es_out=$${OUT} \
--es_opt target=ts \
Expand Down
19 changes: 17 additions & 2 deletions example/example.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/aperturerobotics/template
go 1.22

require (
github.com/aperturerobotics/protobuf-go-lite v0.4.3 // latest
github.com/aperturerobotics/protobuf-go-lite v0.5.0 // latest
github.com/aperturerobotics/starpc v0.30.0 // latest
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/aperturerobotics/protobuf-go-lite v0.4.3 h1:QDoO0ytzO71UWSPbaPi4XF5LfKYDJYxIBlimjYOh5nY=
github.com/aperturerobotics/protobuf-go-lite v0.4.3/go.mod h1:wRZn4YydbTn8Bdx4NB6ms0doF19llgim+0SNBvQ7M9c=
github.com/aperturerobotics/protobuf-go-lite v0.5.0 h1:JmTfiOeTQv06EYIFyVkjkmGXxI7JoCRuokVK2SOvo3I=
github.com/aperturerobotics/protobuf-go-lite v0.5.0/go.mod h1:/EduuzDxtr5s0e9s10XYG35+pPgvrgg3UmBliivOaSs=
github.com/aperturerobotics/starpc v0.30.0 h1:Cjld2mRILmUVGvtLvTykUDsRDGwslUywp9BMbkrB6x4=
github.com/aperturerobotics/starpc v0.30.0/go.mod h1:dwoVi6UdTp1bUGIAxDpkYwDN+j3opZz3xg0NGBGqDeU=
github.com/aperturerobotics/util v1.17.1 h1:7qG1Am+vNAelbXCdYOYfnMaZKM28QBWVCi+zvkjo+d4=
Expand Down
2 changes: 1 addition & 1 deletion hack/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (

require (
github.com/aperturerobotics/goprotowrap v0.3.1 // master
github.com/aperturerobotics/protobuf-go-lite v0.4.3 // master
github.com/aperturerobotics/protobuf-go-lite v0.5.0 // master
github.com/aperturerobotics/starpc v0.30.0
github.com/aperturerobotics/template v1.13.2
)
Expand Down
4 changes: 2 additions & 2 deletions hack/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ github.com/aperturerobotics/logrus v1.9.4-0.20240119050608-13332fb58195 h1:uyeD1
github.com/aperturerobotics/logrus v1.9.4-0.20240119050608-13332fb58195/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/aperturerobotics/protobuf-go v1.33.1-0.20240411062030-e36f75e0a3b8 h1:Juij9Gj5jVOJjqiu3EGHWnX9nH6fkBeGGu/3U8i5qss=
github.com/aperturerobotics/protobuf-go v1.33.1-0.20240411062030-e36f75e0a3b8/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
github.com/aperturerobotics/protobuf-go-lite v0.4.3 h1:QDoO0ytzO71UWSPbaPi4XF5LfKYDJYxIBlimjYOh5nY=
github.com/aperturerobotics/protobuf-go-lite v0.4.3/go.mod h1:wRZn4YydbTn8Bdx4NB6ms0doF19llgim+0SNBvQ7M9c=
github.com/aperturerobotics/protobuf-go-lite v0.5.0 h1:JmTfiOeTQv06EYIFyVkjkmGXxI7JoCRuokVK2SOvo3I=
github.com/aperturerobotics/protobuf-go-lite v0.5.0/go.mod h1:/EduuzDxtr5s0e9s10XYG35+pPgvrgg3UmBliivOaSs=
github.com/aperturerobotics/starpc v0.30.0 h1:Cjld2mRILmUVGvtLvTykUDsRDGwslUywp9BMbkrB6x4=
github.com/aperturerobotics/starpc v0.30.0/go.mod h1:dwoVi6UdTp1bUGIAxDpkYwDN+j3opZz3xg0NGBGqDeU=
github.com/ashanbrown/forbidigo v1.6.0 h1:D3aewfM37Yb3pxHujIPSpTf6oQk9sc9WZi8gerOIVIY=
Expand Down

0 comments on commit e988a0e

Please sign in to comment.