Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppointmentDetails ¶
type LetterAddress ¶
type PaymentDetails ¶
type ReceiptTemplate ¶
type ReceiptTemplate struct { Template LogoPath string LetterAddress LetterAddress AppointmentDate time.Time ServiceName string Location string PaymentDetails PaymentDetails Email string LegalFootNote string }
func NewReceiptTemplate ¶
func NewReceiptTemplate() *ReceiptTemplate
func (*ReceiptTemplate) BuildFooter ¶
func (b *ReceiptTemplate) BuildFooter()
func (*ReceiptTemplate) BuildHeading ¶
func (b *ReceiptTemplate) BuildHeading()
func (*ReceiptTemplate) BuildMainSection ¶
func (b *ReceiptTemplate) BuildMainSection()
func (*ReceiptTemplate) SetPageMargins ¶
func (b *ReceiptTemplate) SetPageMargins()
type Template ¶
func (*Template) BuildFooter ¶
func (t *Template) BuildFooter()
func (*Template) BuildHeading ¶
func (t *Template) BuildHeading()
func (*Template) BuildMainSection ¶
func (t *Template) BuildMainSection()
func (*Template) Generate ¶
func (t *Template) Generate()
* Every template will have a header, main and footer The implementation for this is handled by the specific template but if the implementation is not handled in the derived class then the base method is used instead
func (*Template) SetPageMargins ¶
func (t *Template) SetPageMargins()
Click to show internal directories.
Click to hide internal directories.