Documentation ¶
Index ¶
Constants ¶
View Source
const ( GOFPDF_DIR = "." FONT_DIR = GOFPDF_DIR + "/font" IMG_DIR = GOFPDF_DIR + "/image" TEXT_DIR = GOFPDF_DIR + "/text" )
Variables ¶
This section is empty.
Functions ¶
func GeneratePdf ¶
func GeneratePdf(absence Absence)
Types ¶
type Absence ¶
type Absence struct { Id string `json:"id,omitempty"` EmployeeId string `json:"employee_id,omitempty"` Kind int `json:"kind,omitempty"` From time.Time `json:"from,omitempty"` To time.Time `json:"to,omitempty"` Reason string `json:"reason,omitempty"` ClarificationMp bool `json:"clarification_mp,omitempty"` ClarificationSubstitude bool `json:"clarification_substitude,omitempty"` Approved bool `json:"approved,omitempty"` Comment string `json:"comment,omitempty"` WorkdaysPerWeek int `json:workdays_per_week,omitempty` CreatedAt time.Time `json:"created_at,omitempty"` }
Click to show internal directories.
Click to hide internal directories.