From a797e0c576aeb371d5342d202024726cb7443bcc Mon Sep 17 00:00:00 2001 From: Lukas Macko Date: Wed, 26 Jul 2017 16:01:40 +0200 Subject: 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 --- cmd/binapi-generator/generator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit 1.2.3-korg