Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
Transformer takes a db.Batch and a list of db.Issues, and generates the XML to a given file
func New ¶
func New(templatePath string, outputFileName string, batch *db.Batch, issues []*db.Issue) *Transformer
New returns a batch XML Transformer
We need a batch as well as all issues in order to avoid DB lookups, reduce unknowns, and allow for unsaved / faked data
func (*Transformer) Transform ¶
func (t *Transformer) Transform() error
Transform generates the batch XML
Click to show internal directories.
Click to hide internal directories.