Skip to content

Commit

Permalink
config.hideNamespaceInStructTag added cfg option
Browse files Browse the repository at this point in the history
  • Loading branch information
nxso committed Sep 16, 2023
1 parent cf64d6a commit 87c37f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xsdgen/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,16 @@ func replacePostprocessType(p *specTransform, fn specTransform) Option {
}
}

// PackageName specifies the name of the generated Go
// package.
func HideNamespaceInStructTag(hide bool) Option {
return func(cfg *Config) Option {
prev := cfg.hideNamespaceInStructTag
cfg.hideNamespaceInStructTag = true
return HideNamespaceInStructTag(prev)
}
}

// PackageName specifies the name of the generated Go
// package.
func PackageName(name string) Option {
Expand Down

0 comments on commit 87c37f9

Please sign in to comment.