Documentation
¶
Index ¶
- func DayAndDate(cal kal.Calendar, t time.Time) string
- func DrawLineImage(pdf *gopdf.GoPdf, year, week int, x, y, width, height float64) error
- func FirstMondayOfWeek(year, week int) time.Time
- func FirstSaturdayAfter(date time.Time) time.Time
- func FirstSundayAfter(date time.Time) time.Time
- func FirstSundayOfWeek(year, week int) time.Time
- func FormatDate(cal kal.Calendar, date time.Time) string
- func GeneratePDF(year, week int, names []string, drawing bool) ([]byte, error)
- func GetCurrentWeek() int
- func GetCurrentYear() int
- func GetMonthAbbrev(cal kal.Calendar, month time.Month) string
- func GetMonthName(cal kal.Calendar, t time.Time) string
- func IterateDays(startDay, endDay time.Time, f func(time.Time) error) error
- func MonthNumber(year, week int) int
- func NewCalendar() (kal.Calendar, error)
- func WeekString(week int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawLineImage ¶
DrawLineImage draws an image into the PDF, using only lines
func FirstMondayOfWeek ¶
FirstMondayOfWeek finds the first monday of the week, given a year and a week number
func FirstSaturdayAfter ¶
FirstSaturdayAfter takes a time.Time and returns the first Saturday after the given date as a time.Time
func FirstSundayAfter ¶
FirstSundayAfter finds the first Sunday after the given date
func FirstSundayOfWeek ¶
FirstSundayOfWeek finds the first monday of the week, given a year and a week number
func GetCurrentWeek ¶
func GetCurrentWeek() int
GetCurrentWeek returns the current week number as an int
func GetMonthAbbrev ¶
GetMonthAbbrev takes a time.Month and returns the abbreviation in the current locale
func GetMonthName ¶
GetMonthName takes a time.Time and returns the name of the month in the current locale
func IterateDays ¶
IterateDays iterates over days from startDay to endDay (inclusive) and calls f for each day
func MonthNumber ¶
MonthNumber returns the month number given a year int and a week int.
func NewCalendar ¶
func WeekString ¶
Types ¶
This section is empty.

