Created
June 18, 2018 21:02
-
-
Save Cibernomadas/998066462eb6e75e2a734b88a2d6851a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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