Documentation ¶
Index ¶
- Variables
- func AddLineToFile(filePath, newLine string)
- func CopyAsset(boxed, to string, assetsBox *rice.Box)
- func CopyFile(src, to string)
- func CopyTemplate(boxed, to string, assetsBox *rice.Box, templateData interface{})
- func DownloadFile(url string, filepath string)
- func RemoveLinesFromFile(filePath, text string)
Constants ¶
This section is empty.
Variables ¶
View Source
var AssetsBox *rice.Box
Functions ¶
func AddLineToFile ¶
func AddLineToFile(filePath, newLine string)
AddLineToFile appends a newLine to a file if the line isn't already present.
func CopyTemplate ¶
CopyTemplate create file from a tempalte asset
func DownloadFile ¶
DownloadFile will download a url to a local file.
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.
Click to show internal directories.
Click to hide internal directories.