Skip to content

Commit

Permalink
fix: render version in constant
Browse files Browse the repository at this point in the history
  • Loading branch information
tioffs committed May 13, 2022
1 parent 679acde commit 2e4753b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handler.kafka.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-kafka. DO NOT EDIT.
//
// versions:
// protoc-gen-go-kafka v1.1.3
// protoc-gen-go-kafka {{.Version}}
// protoc (unknown)
// source: {{.PathFile}}

Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ type gen struct {
ModelName string
PackageName string
PathFile string
Version string
}

const (
defaultSuffix = "Export"
version = "v1.1.1"
version = "v1.1.3"
)

func main() {
Expand Down Expand Up @@ -53,6 +54,7 @@ func main() {
ModelName: message.GetName(),
PackageName: string(file.GoPackageName),
PathFile: file.Desc.Path(),
Version: version,
})
if err != nil {
plugin.Error(err)
Expand Down

0 comments on commit 2e4753b

Please sign in to comment.