/doc-template

Simple Google Go (golang) library for replace text in microsoft word (.docx) file

Primary LanguageGoOtherNOASSERTION

Simple Google Go (golang) library for building templates for generic content

Go Report Card

func main() {
	funcMap := template.FuncMap{"title": strings.Title}
	docTemp, _ := GetTemplate("docx/fixtures/test.docx")
	docTemp.AddFunctions(funcMap)
	docTemp.Parse()
	docTemp.Execute("test.docx", nil)
}