{"repo":"JJJJJJack/go-template-docx","free":true,"listed":false,"github":"https://github.com/JJJJJJack/go-template-docx","clone":"git clone https://github.com/JJJJJJack/go-template-docx.git","description":"Template engine for docx documents, with tables, images, loops, charts support and more","language":"Go","stars":56,"topics":["docx","go","golang","template","word"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"go get github.com/JJJJJJack/go-template-docx ⭐ Please consider supporting by starring the repo ⭐ Notes go-template-docx is based on the golang template standard library, thus it inherits its templating syntax to parse tokens inside the docx file. The library doesn't change the original files and only reads it into memory to output a new file with the provided template values. - supports go1.18+ - based on the golang template library syntaxes with features such as: - supports adding your own custom template functions - supports text styling - supports images (png jpg) - supports embedded charts templating - supports tables templating - supports shapes - supports preserving text formatting (color, bold, italic, font size, etc...) when replacing text - more... Released executable usage Template functions list - inlineStyledText(text string, styles ...interface{}) : applies multiple styles to the given text, the styles parameter must be a variadic list of strings, each string is a style to apply, see the styles list below - example: {{inlineStyledText .Text \"b\" \"i\" \"fs:14\" \"bg:#C0FFEE\" \"#FF0000\"}} to apply bold, italic, 14pt font size, a light blue background color and make the text red - styledText(text string, styles []interface{}) : applies multiple styles to the given text, the styles parameter must be a slice of strings, each string is a style to apply, see the styles list below - example: {{styledText .Text (list \"b\" \"i\" \"fs:14\" \"bg:#C0FFEE\" \"#FF0000\")}} to apply bold, ital","default_branch":null,"files":null,"tree":[],"storefront":"/r/JJJJJJack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JJJJJJack/go-template-docx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}