Documentation
¶
Index ¶
Constants ¶
View Source
const Template = "magic.tex.tmpl"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tocht ¶
type Tocht struct {
FileName string // Name of the generated PDF.
Kenmerk string // Unique kenmerk of this invoice.
Tour string
Cost float64
Rate float64 // current GBP:EUR rate, autofill
Date string // YYYY/MM/DD form
Name string
FullName string
Email string
}
Tocht holds all the data we need to generate a tocht.
func (*Tocht) Create ¶
Create parses the templates and runs pdflatex on the resulting tex file. It returns generated PDF.
func (*Tocht) ExecuteTemplateAndWrite ¶
ExecuteTemplateAndWrite executes the template and writes the buffer to dst.
func (*Tocht) FillOut ¶
FillOut fills in these missing fields in i, such as: Day, Filename and makes Date Dutch.
func (*Tocht) MailSubject ¶
Click to show internal directories.
Click to hide internal directories.