Documentation ¶
Index ¶
- func AskAboutError(err string, w io.Writer, r io.Reader) bool
- func CheckFile(path string) (string, error)
- func ConvertTplToGoFilePath(tplPath string) string
- func CopyDir(from string, to string) error
- func CopyFile(from, to string) error
- func ExecuteCode(tpl *template.Template, values interface{}, file string) error
- func GetTemplate(path string) (*template.Template, error)
- func PrepareDestination(fileDestination, sampleDestination string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskAboutError ¶
AskAboutError Print err to stdout and asking about continue of executing program
func ConvertTplToGoFilePath ¶
ConvertTplToGoFilePath converting filepath with any extension to go-filepath. Is used for config validation
func ExecuteCode ¶
ExecuteCode for generation code from template with values to final file
func GetTemplate ¶
GetTemplate for defining template object from file
func PrepareDestination ¶
PrepareDestination check destination of file. Comparing sample-destination with file-destination for detecting full path to file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.