X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapigen%2Frun.go;h=f7776c920a389af1e4190bcdea36e9913365dccd;hb=ff0a39377533365e128c3364395c6bfbae8d5b1a;hp=d3a181afcb29979fc451cada7381a9c04ea8fd5e;hpb=58da9ac6e691a8c660eb8ca838a154e11da0db68;p=govpp.git diff --git a/binapigen/run.go b/binapigen/run.go index d3a181a..f7776c9 100644 --- a/binapigen/run.go +++ b/binapigen/run.go @@ -29,9 +29,10 @@ import ( ) type Options struct { - OutputDir string // output directory for generated files - ImportPrefix string // prefix for import paths - NoVersionInfo bool // disables generating version info + OutputDir string // output directory for generated files + ImportPrefix string // prefix for import paths + NoVersionInfo bool // disables generating version info + NoSourcePathInfo bool // disables the 'source: /path' comment } func Run(apiDir string, filesToGenerate []string, opts Options, f func(*Generator) error) {