Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDir ¶
EnsureDir returns an error if the folder already exist. This is wanted in the case we don't want to override it.
func GenerateSourceTemplate ¶
func GenerateSourceTemplate(name string, templatePath string, data map[string]string) ([]byte, error)
GenerateSourceTemplate returns the generated template, filled with data or error.
func SaveFileToPath ¶
SaveFileToPath will try to save the file in the filepath provided. It will create the directory, and return an error if it already exist
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.