summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRastislav Szabo <raszabo@cisco.com>2017-07-28 07:08:06 +0000
committerGerrit Code Review <gerrit@fd.io>2017-07-28 07:08:06 +0000
commit13ab652c89a8bf5b16017156f8fb388e1889a8e1 (patch)
tree58d116302787029c7210372c375b6fc6401da465
parent3ec4064566b9e4db1a88c007e0d9a513f7673b36 (diff)
parenta797e0c576aeb371d5342d202024726cb7443bcc (diff)
Merge "Modify the generator to generate the code that is ignored by golint https://github.com/golang/go/issues/13560#issuecomment-288457920"
-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)