Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMultiple ¶
func CreateMultiple(files []FileTemplate) error
CreateMultiple creates multiple files from a FileTemplate array
Types ¶
type FileTemplate ¶
type FileTemplate struct { Name string // filename or path/filename Tmpl string // go template in string format Data interface{} // data used for template generation }
FileTemplate is the base from which a file gets created.
Click to show internal directories.
Click to hide internal directories.