Skip to content

Commit

Permalink
fix: fix cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Apr 26, 2024
1 parent 4d0dfcd commit 8cb77e6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/protoc-gen-dyn-gin/gin.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func generateFile(gen *protogen.Plugin, file *protogen.File, omitempty bool) *pr
g.P("// Code generated by protoc-gen-dyn-gin. DO NOT EDIT.")
g.P("// versions:")
g.P("// - protoc-gen-dyn-gin ", version)
g.P("// - protoc ", protocVersion(gen))
g.P("// - protoc ", protocVersion(gen))
if file.Proto.GetOptions().GetDeprecated() {
g.P("// ", file.Desc.Path(), " is a deprecated file.")
} else {
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-dyn-gin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"google.golang.org/protobuf/compiler/protogen"
)

const version = "v0.2.0"
const version = "v1.0.0"

var args = struct {
ShowVersion bool
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-dyn-resty/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"google.golang.org/protobuf/compiler/protogen"
)

const version = "0.2.0"
const version = "v1.0.0"

var args = struct {
ShowVersion bool
Expand Down
4 changes: 2 additions & 2 deletions cmd/protoc-gen-dyn-resty/resty.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func generateFile(gen *protogen.Plugin, file *protogen.File, omitempty bool) *pr
g := gen.NewGeneratedFile(filename, file.GoImportPath)
g.P("// Code generated by protoc-gen-dyn-resty. DO NOT EDIT.")
g.P("// versions:")
g.P("// - protoc-gen-dyn-resty v", version)
g.P("// - protoc ", protocVersion(gen))
g.P("// - protoc-gen-dyn-resty ", version)
g.P("// - protoc ", protocVersion(gen))
if file.Proto.GetOptions().GetDeprecated() {
g.P("// ", file.Desc.Path(), " is a deprecated file.")
} else {
Expand Down
4 changes: 2 additions & 2 deletions example/hello/hello.gin.pb.go

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

4 changes: 2 additions & 2 deletions example/hello/hello.resty.pb.go

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

0 comments on commit 8cb77e6

Please sign in to comment.