diff options
author | Rastislav Szabo <raszabo@cisco.com> | 2017-05-17 16:19:30 +0200 |
---|---|---|
committer | Rastislav Szabo <raszabo@cisco.com> | 2017-05-17 16:19:30 +0200 |
commit | 4b0cfc7539ec6fdbc462f60269656fee761bafaf (patch) | |
tree | 27a9f634d5201dea49207a50fa8e1ba9639bdc58 /binapi_generator | |
parent | 51f628282c65f754152a346074f2ae286121138e (diff) |
multiple small fixes
Change-Id: I9e822ce7e9b9f44f7d074b0294d6eda37c2a0f12
Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
Diffstat (limited to 'binapi_generator')
-rw-r--r-- | binapi_generator/generator.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/binapi_generator/generator.go b/binapi_generator/generator.go index 43f9ede..22fe3e1 100644 --- a/binapi_generator/generator.go +++ b/binapi_generator/generator.go @@ -27,7 +27,6 @@ import ( "os/exec" "path/filepath" "strings" - "time" "unicode" "github.com/bennyscetbun/jsongo" @@ -44,7 +43,7 @@ const ( const ( apiImportPath = "git.fd.io/govpp.git/api" // import path of the govpp API - inputFileExt = ".json" // filename extension of files that should be processed as the input + inputFileExt = ".json" // filename extension of files that should be processed as the input ) // context is a structure storing details of a particular code generation task @@ -386,7 +385,7 @@ 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, "// Package "+ctx.packageName+" represents the VPP binary API of the '"+ctx.packageName+"' VPP module.") - fmt.Fprintln(w, "// DO NOT EDIT. Generated from '"+ctx.inputFile+"' on "+time.Now().Format(time.RFC1123)+".") + fmt.Fprintln(w, "// DO NOT EDIT. Generated from '"+ctx.inputFile+"'") fmt.Fprintln(w, "package "+ctx.packageName) |