Versions in this module Expand all Collapse all v1 v1.1.1 Sep 13, 2024 v1.1.0 Sep 13, 2024 Changes in this version + var DefaultOptions = []Option + type Code struct + func (c *Code) DocType(targetNS string) (*xsd.ComplexType, bool) + func (c *Code) NameOf(name xml.Name) string + func (code *Code) GenAST() (*ast.File, error) + type Config struct + func (cfg *Config) GenAST(files ...string) (*ast.File, error) + func (cfg *Config) GenCLI(arguments ...string) error + func (cfg *Config) GenCode(data ...[]byte) (*Code, error) + func (cfg *Config) GenSource(files ...string) ([]byte, error) + func (cfg *Config) NameOf(name xml.Name) string + func (cfg *Config) Option(opts ...Option) (previous Option) + type Logger interface + Printf func(format string, v ...interface{}) + type Option func(*Config) Option + func AllowType(name xml.Name) Option + func FollowImports(follow bool) Option + func HandleSOAPArrayType() Option + func IgnoreAttributes(names ...string) Option + func IgnoreElements(names ...string) Option + func LogLevel(level int) Option + func LogOutput(l Logger) Option + func Namespaces(xmlns ...string) Option + func OnlyTypes(patterns ...string) Option + func PackageName(name string) Option + func ProcessTypes(fn func(xsd.Schema, xsd.Type) xsd.Type) Option + func Replace(pat, repl string) Option + func SOAPArrayAsSlice() Option + func UseFieldNames() Option