Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MLnone file does not have a mode line. MLnone = iota // MLrender file mode line instruction to render. MLrender // MLnorender file mode line instruction not to render. MLnorender )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct { Config *config.File Log *log.Logger ModeLineLen uint8 RenderCurrent string RenderersAvail map[string]renderer.Renderer Stderr io.Writer Stdout io.Writer TemplateDir string Variables *variables.Variables // contains filtered or unexported fields }
Template the template itself
func (*Template) SetSrc ¶
SetSrc sets the source template "name". "name" is defined in *config.Config.TemplateURLs. *config.Config is provided as an Option to New.
func (*Template) SetSrcDest ¶
SetSrcDest sets the source template and destination path where the project structure will reside.
Click to show internal directories.
Click to hide internal directories.