Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas
Created June 18, 2018 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cibernomadas/998066462eb6e75e2a734b88a2d6851a to your computer and use it in GitHub Desktop.
Save Cibernomadas/998066462eb6e75e2a734b88a2d6851a to your computer and use it in GitHub Desktop.
func TemplatePartials() []string {
return []string{
path.Join("partials", "menu"),
path.Join("partials", "error"),
}
}
func TemplateFuncs() template.FuncMap {
return template.FuncMap{
"year": func() string {
return time.Now().Format("2006")
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment