Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplatedStr ¶
Types ¶
type DirTemplate ¶
DirTemplate stores a single directory template
func (*DirTemplate) Instantiate ¶
func (d *DirTemplate) Instantiate(destDir string, ctx interface{}) error
Instantiate instantiates file template
type FileTemplate ¶
FileTemplate stores a single file template
func (*FileTemplate) Instantiate ¶
func (t *FileTemplate) Instantiate(destDir string, ctx interface{}) error
Instantiate instantiates file template
type FileTreeTemplate ¶
type FileTreeTemplate struct { Files []FileTemplate Dirs []DirTemplate }
FileTreeTemplate stores filetree template
func Combine ¶
func Combine(tmplts ...FileTreeTemplate) *FileTreeTemplate
Combine combines two file tree templates
func (*FileTreeTemplate) AddDirs ¶
func (tmpl *FileTreeTemplate) AddDirs(dirTemplates ...DirTemplate)
AddDirs adds dirs to tree template
func (*FileTreeTemplate) AddFiles ¶
func (tmpl *FileTreeTemplate) AddFiles(fileTemplates ...FileTemplate)
AddFiles adds files to tree template
func (*FileTreeTemplate) Instantiate ¶
func (tmpl *FileTreeTemplate) Instantiate(destDir string, ctx interface{}) error
Instantiate instantiates file tree template
Click to show internal directories.
Click to hide internal directories.