fs

package
v0.0.0-...-93feae3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(srcFile string, destFile string, relFile string, templateVars config.Project)

CopyFile copies a file from a source to destination. If there are any errors, it prints the error to the screen and immediately panics

func FilePossiblyExists

func FilePossiblyExists(fileName string) (bool, error)

FilePossiblyExists stops the program if the file possiblyExists If no error is returned, we can be certain that boolean has integrity. If there is an error, then the file _possibly_ exists and the boolean does _not_ have integrity

func RemoveFile

func RemoveFile(destFile string)

RemoveFile removes a file. If there are any errors in doing so, it immediately panics

Types

This section is empty.

Jump to

Keyboard shortcuts

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