Documentation
¶
Index ¶
- func Add(a, b int) int
- func AddDefaultData(td *at.TemplateData, r *http.Request) *at.TemplateData
- func ConstructCron(b *types.NewBackupDTO) string
- func CreateTemplateCache() (map[string]*template.Template, error)
- func DayName(d int) string
- func EqualWithZeroAndNoValue(c int, v interface{}) bool
- func FormatDate(t time.Time, f string) string
- func GetBackupJob(b *at.NewBackupDTO, jobs []at.SmallJob) at.SmallJob
- func GetThemes() []string
- func HumanDate(t time.Time) string
- func HumanFrequency(b *at.NewBackupDTO) string
- func HumanTimezonedDate(t time.Time, tz string) string
- func Iterate(count int) []int
- func MonthName(d int) string
- func NewRenderer(a *config.AppConfig)
- func Template(w http.ResponseWriter, r *http.Request, tmpl string, td *at.TemplateData) error
- func TimezonedDate(t time.Time, tz string) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultData ¶
func AddDefaultData(td *at.TemplateData, r *http.Request) *at.TemplateData
AddDefaultData adds data for all templates
func ConstructCron ¶
func ConstructCron(b *types.NewBackupDTO) string
func CreateTemplateCache ¶
CreateTemplateCache creates a template cache as a map
func EqualWithZeroAndNoValue ¶
func GetBackupJob ¶
func HumanFrequency ¶
func HumanFrequency(b *at.NewBackupDTO) string
func NewRenderer ¶
NewRenderer sets the config for the template package
func Template ¶
func Template(w http.ResponseWriter, r *http.Request, tmpl string, td *at.TemplateData) error
Template renders templates using html/template
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.