addTemplateExt takes in a slice of strings representing file paths for templates and it appends the templateExt extension to each string in the slice Eg the input {"home"} would result in the output {"home.gohtml"} if templateExt == ".gohtml"
(files []string)
| 108 | // Eg the input {"home"} would result in the output |
| 109 | // {"home.gohtml"} if templateExt == ".gohtml" |
| 110 | func addTemplateExt(files []string) { |
| 111 | for i, f := range files { |
| 112 | files[i] = f + TemplateExt |
| 113 | } |
| 114 | } |