Documentation ¶
Index ¶
- func DateFormat(s string) template.HTML
- func DateFormatYYYYMMDD(s string) template.HTML
- func DomainSetLang(domain string, uri string, language string) string
- func Handler(w http.ResponseWriter, req *http.Request, page interface{}, page2 *model.Page, ...)
- func HumanSize(size string) (string, error)
- func InitLocaleBundle() (*i18n.Bundle, error)
- func InitLocalizer() map[string]*i18n.Localizer
- func Last(x int, a interface{}) bool
- func LegacyDataSetDownloadURI(pageURI, filename string) string
- func Localise(key string, language string, plural int, templateArguments ...string) string
- func Loop(n, m int) []int
- func Markdown(md string) template.HTML
- func SafeHTML(s string) template.HTML
- func Slug(s string) string
- func Subtract(x, y int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateFormat ¶ added in v1.9.0
func DateFormatYYYYMMDD ¶ added in v1.9.0
func DomainSetLang ¶ added in v1.9.0
func Handler ¶
func Handler(w http.ResponseWriter, req *http.Request, page interface{}, page2 *model.Page, templateName string, f func(), cfg config.Config)
Handler resolves the rendering of a specific pagem with a given model and template name
func InitLocaleBundle ¶ added in v1.9.0
InitLocaleBundle is used to initialise the locale bundle
func InitLocalizer ¶ added in v1.9.0
InitLocalizer is used to initialise the localizer
func LegacyDataSetDownloadURI ¶ added in v1.9.0
LegacyDataSetDownloadURI builds a URI string for a legacy dataset download URI.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.