addTemplatePath takes in a slice of strings representing file paths for templates.
(files []string)
| 96 | // addTemplatePath takes in a slice of strings |
| 97 | // representing file paths for templates. |
| 98 | func addTemplatePath(files []string) { |
| 99 | for i, f := range files { |
| 100 | files[i] = fmt.Sprintf("templates/%s", f) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | // addTemplateExt takes in a slice of strings |
| 105 | // representing file paths for templates and it appends |