chore: switch to moul.io/protoc-gen-gotemplate
This commit is contained in:
		| @@ -9,7 +9,7 @@ build: | ||||
| 	protoc -I./proto --go_out=plugins=grpc:output proto/aaa/aaa.proto | ||||
| 	protoc -I./proto --go_out=plugins=grpc:output proto/bbb/bbb.proto | ||||
| 	@rm -rf output/aaa output/bbb | ||||
| 	@mv output/github.com/moul/protoc-gen-gotemplate/examples/single-package-mode/output/* output/ | ||||
| 	@mv output/moul.io/protoc-gen-gotemplate/examples/single-package-mode/output/* output/ | ||||
| 	@rm -rf output/github.com | ||||
|  | ||||
| 	@# protoc-gen-gotemplate | ||||
|   | ||||
| @@ -17,7 +17,7 @@ package bbb | ||||
| import proto "github.com/golang/protobuf/proto" | ||||
| import fmt "fmt" | ||||
| import math "math" | ||||
| import the_aaa_package "github.com/moul/protoc-gen-gotemplate/examples/single-package-mode/output/aaa" | ||||
| import the_aaa_package "moul.io/protoc-gen-gotemplate/examples/single-package-mode/output/aaa" | ||||
|  | ||||
| import ( | ||||
| 	context "golang.org/x/net/context" | ||||
|   | ||||
| @@ -4,7 +4,7 @@ package bbb | ||||
| import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/moul/protoc-gen-gotemplate/examples/single-package-mode/output/aaa" | ||||
| 	"moul.io/protoc-gen-gotemplate/examples/single-package-mode/output/aaa" | ||||
| 	"golang.org/x/net/context" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| syntax = "proto3"; | ||||
|  | ||||
| option go_package = "github.com/moul/protoc-gen-gotemplate/examples/single-package-mode/output/aaa"; | ||||
| option go_package = "moul.io/protoc-gen-gotemplate/examples/single-package-mode/output/aaa"; | ||||
|  | ||||
| package the.aaa.package; | ||||
|  | ||||
| @@ -9,4 +9,4 @@ message AaaRequest { | ||||
| } | ||||
| message AaaReply { | ||||
|   string error = 1; | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -2,7 +2,7 @@ syntax = "proto3"; | ||||
|  | ||||
| package the.bbb.package; | ||||
|  | ||||
| option go_package = "github.com/moul/protoc-gen-gotemplate/examples/single-package-mode/output/bbb"; | ||||
| option go_package = "moul.io/protoc-gen-gotemplate/examples/single-package-mode/output/bbb"; | ||||
|  | ||||
| import "aaa/aaa.proto"; | ||||
|  | ||||
| @@ -16,4 +16,4 @@ message BbbRequest { | ||||
| } | ||||
| message BbbReply { | ||||
|   bool done = 1; | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user