fileutils

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

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 CopyAsset

func CopyAsset(boxed, to string, assetsBox *rice.Box)

CopyAsset copies a file from asset

func CopyFile

func CopyFile(src, to string)

CopyFile from one file to another

func CopyTemplate

func CopyTemplate(boxed, to string, assetsBox *rice.Box, templateData interface{})

CopyTemplate create file from a tempalte asset

func DownloadFile

func DownloadFile(url string, filepath string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL