I built dgdoc to automate document generation without relying on slow interop tools or complex XML manipulation. It’s a high-performance Go library (and CLI) that populates Office templates using JSON data.
It goes beyond simple text replacement:
DOCX: Converts HTML to native Word elements (tables, lists) and supports logic ({#if}, {#loop}).
XLSX: Preserves formulas while populating cells and duplicating rows.
PPTX: Handles slide text replacement and content duplication.
It compiles to a single binary, making it easy to generate reports, contracts, or presentations in serverless/container environments.