Merge pull request #131 from jen20/build-tag-whitespace

Trim whitespace around build tags
This commit is contained in:
Vasily Romanov
2017-08-24 10:21:24 +03:00
committed by GitHub
+6 -1
View File
@@ -54,8 +54,13 @@ func generate(fname string) (err error) {
outName = *specifiedName
}
var trimmedBuildTags string
if *buildTags != "" {
trimmedBuildTags = strings.TrimSpace(*buildTags)
}
g := bootstrap.Generator{
BuildTags: *buildTags,
BuildTags: trimmedBuildTags,
PkgPath: p.PkgPath,
PkgName: p.PkgName,
Types: p.StructNames,