mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
Merge pull request #131 from jen20/build-tag-whitespace
Trim whitespace around build tags
This commit is contained in:
+6
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user