func main() {
funcMap := template.FuncMap{"title": strings.Title}
docTemp, _ := GetTemplate("docx/fixtures/test.docx")
docTemp.AddFunctions(funcMap)
docTemp.Parse()
docTemp.Execute("test.docx", nil)
}opencontrol/doc-template
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|