Documentation ¶
Index ¶
- func AddLineToFile(filePath, newLine string)
- func AssetsBox() *rice.Box
- func CopyAsset(boxed, to string, assetsBox *rice.Box)
- func CopyDir(src, dst string)
- func CopyFile(src, to string)
- func CopyTemplateDir(boxed, to string, templateData interface{})
- func DownloadFile(url string, filepath string)
- func ExecuteTemplateFromAssetsBox(boxed, to string, assetsBox *rice.Box, templateData interface{})
- func ExecuteTemplateFromFile(boxed, to string, templateData interface{})
- func IsDirectory(path string) bool
- func IsFileExists(filename string) bool
- func RemoveLinesFromFile(filePath, text string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLineToFile ¶
func AddLineToFile(filePath, newLine string)
AddLineToFile appends a newLine to a file if the line isn't already present.
func CopyDir ¶
func CopyDir(src, dst string)
CopyDir copy files from one directory to another directory recursively
func CopyTemplateDir ¶
func CopyTemplateDir(boxed, to string, templateData interface{})
CopyTemplateDir copy files from one directory to another directory recursively while executing all templates in files and file names
func DownloadFile ¶
DownloadFile will download a url to a local file.
func ExecuteTemplateFromAssetsBox ¶
ExecuteTemplateFromAssetsBox create file from a template asset
func ExecuteTemplateFromFile ¶
func ExecuteTemplateFromFile(boxed, to string, templateData interface{})
ExecuteTemplateFromFile create file from a template file
func IsDirectory ¶
IsDirectory check if path exists and is a directory
func IsFileExists ¶
IsFileExists checks if a file exists and is not a directory
func RemoveLinesFromFile ¶
func RemoveLinesFromFile(filePath, text string)
RemoveLinesFromFile removes lines to a file if the text is present in the line
Types ¶
This section is empty.