generator

package
v0.0.0-...-e67f642 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	None  CalendarWeek = "None"
	Right              = "Right"
	Left               = "Left"
	Both               = "Both"
)

Variables

This section is empty.

Functions

func Generate

func Generate(set Settings, saveToDirectory string)

Generate creates a set of calendar templates for the given settings

Types

type CalendarWeek

type CalendarWeek string

type MonthImageMap

type MonthImageMap map[time.Month]string

type Settings

type Settings struct {
	Year   int
	Width  int
	Height int

	MarginLeft   int
	MarginRight  int
	MarginTop    int
	MarginBottom int

	HeaderFont     string
	HeaderFontSize int

	StartOfTheWeek time.Weekday

	CalendarWeek      CalendarWeek
	CalendarWeekColor float64

	MonthImages MonthImageMap
}

Settings is a structure to pass in every layout related property from outside

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL