Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocTemplate ¶
DocTemplate struct combines data and methods from both the Document interface and golang's templating library
func GetTemplate ¶
func GetTemplate(filePath string) (*DocTemplate, error)
GetTemplate uses the file extension to determine the correct document struct to use
func (*DocTemplate) AddFunctions ¶
func (docTemplate *DocTemplate) AddFunctions(funcMap template.FuncMap)
AddFunctions adds functions to the template
func (*DocTemplate) Execute ¶
func (docTemplate *DocTemplate) Execute(exportPath string, data interface{}) error
Execute func runs the template and sends the output to the export path
Click to show internal directories.
Click to hide internal directories.