Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocxTemplate ¶
type DocxTemplate struct {
// contains filtered or unexported fields
}
DocxTemplate represents a docx template
func New ¶
func New(r io.ReaderAt, size int64) (*DocxTemplate, error)
New creates a new DocxTemplate
func (*DocxTemplate) Funcs ¶
func (t *DocxTemplate) Funcs(f template.FuncMap)
Funcs registers custom functions
func (*DocxTemplate) Render ¶
func (t *DocxTemplate) Render(data interface{}) error
type HTMLInjector ¶
type HTMLInjector struct {
Content string
}
HTMLInjector injects HTML content into the document
type ImageInjector ¶
ImageInjector injects an image into the document
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
block_loop
command
|
|
|
complex_report
command
|
|
|
html_injection
command
|
|
|
row_if
command
|
|
|
simple_write
command
|
|
|
tools
|
|
|
check_base
command
|
|
|
create_png
command
|
|
|
gen_base
command
|
|
|
inspect_methods
command
|
|
|
verify_block
command
|
|
|
verify_html
command
|
Click to show internal directories.
Click to hide internal directories.