Getting Started
go-template-docx is a Go library for templating Microsoft Word (.docx) files.
What is it?
Template DOCX files using Go's standard template syntax with support for:
- Text styling (bold, italic, colors, sizes)
- Images (PNG/JPG)
- Charts and tables
- Custom functions
Requirements
- Go 1.18+
Install
bash
go get github.com/JJJJJJack/go-template-docxImport
go
import gotemplatedocx "github.com/JJJJJJack/go-template-docx"