Documentation ¶
Overview ¶
Package DTDParser A DTD parser
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { WithComments bool IgnoreExtRefIssue bool Filepath string Collection []DTD.IDTDBlock Overwrite bool Log *zap.SugaredLogger Package string // contains filtered or unexported fields }
Parser is a structure that represents the parser it can manage multiple DTD parsers
func NewDTDParser ¶
func NewDTDParser(Log *zap.SugaredLogger) *Parser
NewDTDParser returns a new DTD parser
func (*Parser) SetExportEntity ¶
SetExportEntity Mark an entity block are exported in the collection
func (*Parser) SetFormatter ¶
SetFormatter Setter for formatter
func (*Parser) SetOutputPath ¶
SetOutputPath set the output path of the DTD to export the DTD
func (*Parser) SetStructPath ¶
SetStructPath set the output path to export the DTD a go Struct
Click to show internal directories.
Click to hide internal directories.