Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶ added in v0.8.0
CopyFile copies the contents of a file to another file. If the destination file already exists, it will be overwritten.
func ReadFileIfExists ¶ added in v0.8.0
ReadFileIfExists reads the contents of a file and returns it as a string, along with a boolean indicating if the file exists. If the file does not exist, it returns an empty string, false and no error. If the file exists but cannot be read, it returns an error.
func WriteToFile ¶
WriteToFile writes the given content to a file. If the file already exists, it will be overwritten.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.