summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Macko <lmacko@cisco.com>2017-07-26 16:01:40 +0200
committerLukas Macko <lmacko@cisco.com>2017-07-26 16:01:40 +0200
commita797e0c576aeb371d5342d202024726cb7443bcc (patch)
tree8953aabfdb48d10a4bad124234d96716d5751fb5
parent878bade578bb9d52547591ee02b57d1ac04849b2 (diff)
Modify the generator to generate the code that is ignored by golint https://github.com/golang/go/issues/13560#issuecomment-288457920
Change-Id: I30482b6322b2cfa397541fb96aa7ba8fb72dec0a Signed-off-by: Lukas Macko <lmacko@cisco.com>
-rw-r--r--cmd/binapi-generator/generator.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/binapi-generator/generator.go b/cmd/binapi-generator/generator.go
index 22fe3e1..d80f687 100644
--- a/cmd/binapi-generator/generator.go
+++ b/cmd/binapi-generator/generator.go
@@ -384,8 +384,9 @@ func processMessageField(ctx *context, fields *[]string, fld *jsongo.JSONNode) e
// generatePackageHeader generates package header into provider writer
func generatePackageHeader(ctx *context, w io.Writer, rootNode *jsongo.JSONNode) {
+ fmt.Fprintln(w, "// Code generated by govpp binapi-generator DO NOT EDIT.")
fmt.Fprintln(w, "// Package "+ctx.packageName+" represents the VPP binary API of the '"+ctx.packageName+"' VPP module.")
- fmt.Fprintln(w, "// DO NOT EDIT. Generated from '"+ctx.inputFile+"'")
+ fmt.Fprintln(w, "// Generated from '"+ctx.inputFile+"'")
fmt.Fprintln(w, "package "+ctx.packageName)