Documentation ¶
Index ¶
- func CreateFolder(path string) error
- func Delete(target string) error
- func FileHasText(target string, text string) (bool, error)
- func FolderExist(target string) error
- func GetFileContent(path string) ([]byte, error)
- func SaveBinaryFile(target string, assetReader io.ReadCloser) error
- func SaveFile(rc io.ReadCloser, executablePath string, mode fs.FileMode) error
- func WriteToFile(target string, text string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFolder ¶
CreateFolder recursively creates required directories.
func FileHasText ¶
FileHasText Checks if a file already have specific text
func FolderExist ¶
FolderExist Checks if a folder exists in the filesystem.
func GetFileContent ¶
GetFileContent Retrieves the content of a file.
func SaveBinaryFile ¶
func SaveBinaryFile(target string, assetReader io.ReadCloser) error
func WriteToFile ¶
WriteToFile Writes text to a file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.