Documentation ¶
Overview ¶
Contains constants for the package.
Package corp is used to create the company's invoice in PDF format.
Contains the invoice struct and methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FloatToDollar ¶
FloatToDollar converts a float to a string with only 2 floating points.
func FloatToText ¶
FloatToText converts a float to string and drops any floating points.
Types ¶
type Company ¶
type Company struct {
Logo, ContactInfo, Address string
}
Company represents a company. Every company has a logo path, contact info, and address.
func (Company) InvoiceHeader ¶
InvoiceHeader renders the top part of the invoice with client name, client address, invoice number, date of issue, and the huge invoice total.
Click to show internal directories.
Click to hide internal directories.