Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 454 Bytes

README.md

File metadata and controls

12 lines (11 loc) · 454 Bytes

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)
}