From 2e4753b6b891a45b031957a3824212646dace28b Mon Sep 17 00:00:00 2001 From: tioffs Date: Fri, 13 May 2022 11:14:38 +0300 Subject: [PATCH] fix: render version in constant --- handler.kafka.tmpl | 2 +- main.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/handler.kafka.tmpl b/handler.kafka.tmpl index b3a7b48..752890d 100644 --- a/handler.kafka.tmpl +++ b/handler.kafka.tmpl @@ -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}} diff --git a/main.go b/main.go index aafbadf..ea481a5 100644 --- a/main.go +++ b/main.go @@ -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() { @@ -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)