batchxml

package
v2.5.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL