Skip to content

Commit

Permalink
Merge pull request #174 from Dzalevski/fix/refactor-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
moul authored Apr 12, 2021
2 parents db1b4f6 + 1025d78 commit 6ea84c1
Show file tree
Hide file tree
Showing 17 changed files with 822 additions and 446 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ gin-bin

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# IDE settings
.idea
102 changes: 6 additions & 96 deletions examples/dummy/output/export.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"build-date": "2017-05-19T20:09:45.954357761+02:00",
"build-hostname": "manfred-spacegray.aircard",
"build-date": "2021-04-12T10:42:31.388860713Z",
"build-hostname": "fwrz",
"build-user": "moul",
"pwd": "/Users/moul/Git/moul/protoc-gen-gotemplate/examples/dummy",
"pwd": "/home/moul/go/src/moul.io/protoc-gen-gotemplate/examples/dummy",
"debug": false,
"destination-dir": ".",
"destination-dir": "",
"file": {
"name": "dummy.proto",
"package": "dummy",
Expand Down Expand Up @@ -118,8 +118,8 @@
],
"span": [
2,
8,
13
0,
14
]
},
{
Expand Down Expand Up @@ -159,21 +159,6 @@
16
]
},
{
"path": [
4,
0,
2,
0,
4
],
"span": [
5,
2,
4,
16
]
},
{
"path": [
4,
Expand Down Expand Up @@ -229,21 +214,6 @@
17
]
},
{
"path": [
4,
0,
2,
1,
4
],
"span": [
6,
2,
5,
16
]
},
{
"path": [
4,
Expand Down Expand Up @@ -299,21 +269,6 @@
16
]
},
{
"path": [
4,
0,
2,
2,
4
],
"span": [
7,
2,
6,
17
]
},
{
"path": [
4,
Expand Down Expand Up @@ -369,21 +324,6 @@
16
]
},
{
"path": [
4,
0,
2,
3,
4
],
"span": [
8,
2,
7,
16
]
},
{
"path": [
4,
Expand Down Expand Up @@ -532,21 +472,6 @@
16
]
},
{
"path": [
4,
1,
2,
0,
4
],
"span": [
13,
2,
12,
16
]
},
{
"path": [
4,
Expand Down Expand Up @@ -602,21 +527,6 @@
17
]
},
{
"path": [
4,
1,
2,
1,
4
],
"span": [
14,
2,
13,
16
]
},
{
"path": [
4,
Expand Down
8 changes: 4 additions & 4 deletions examples/flow/output/test/test_grpc_js.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default {

TestService: {

testNoStream: {
testnostream: {
path: '/test.TestService/TestNoStream',
requestStream: false,
responseStream: false,
Expand All @@ -272,7 +272,7 @@ export default {
responseSerialize: serialize_test_TestNoStreamReply,
responseDeserialize: deserialize_test_TestNoStreamReply,
},
testStreamRequest: {
teststreamrequest: {
path: '/test.TestService/TestStreamRequest',
requestStream: true,
responseStream: false,
Expand All @@ -283,7 +283,7 @@ export default {
responseSerialize: serialize_test_TestStreamRequestReply,
responseDeserialize: deserialize_test_TestStreamRequestReply,
},
testStreamReply: {
teststreamreply: {
path: '/test.TestService/TestStreamReply',
requestStream: false,
responseStream: true,
Expand All @@ -294,7 +294,7 @@ export default {
responseSerialize: serialize_test_TestStreamReplyReply,
responseDeserialize: deserialize_test_TestStreamReplyReply,
},
testStreamBoth: {
teststreamboth: {
path: '/test.TestService/TestStreamBoth',
requestStream: true,
responseStream: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/go-generate/example.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package example

//go:generate protoc --go_out=./gen/ example.proto
//go:generate protoc --gotemplate_out=./gen/ example.proto
//go:generate protoc --gotemplate_out=template_dir=templates:./gen/ example.proto
2 changes: 2 additions & 0 deletions examples/go-generate/example.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ syntax = "proto3";

package example;

option go_package = "./";

service Sum {
rpc Sum(SumRequest) returns (SumReply) {};
}
Expand Down
Loading

0 comments on commit 6ea84c1

Please sign in to comment.