func main() {
funcMap := template.FuncMap{"title": strings.Title}
docTemp, _ := GetTemplate("docx/fixtures/test.docx")
docTemp.AddFunctions(funcMap)
docTemp.Parse()
docTemp.Execute("test.docx", nil)
}
forked from opencontrol/doc-template
Simple Google Go (golang) library for replace text in microsoft word (.docx) file
License
danilsolovyov/doc-template
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple Google Go (golang) library for replace text in microsoft word (.docx) file
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Go 100.0%