Documentation
¶
Index ¶
- func CreateFile(path string) *os.File
- func DeleteFile(path string)
- func FileInfo(path string) os.FileInfo
- func FileSize(file *os.File) int64
- func OpenFile(path string) *os.File
- func OverwriteFile(file *os.File, contents []byte)
- func ReadFile(file *os.File) []byte
- func Symlink(oldname string, newname string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
CreateFile creates a file at the specified path. If it encounters any errors, it logs them and ends the program.
func DeleteFile ¶
func DeleteFile(path string)
DeleteFile deletes the file at the specified path. If it encounters any errors, it logs them and ends the program.
func FileInfo ¶
FileStats returns the info on the given file. If any errors are encountered, it logs the error and then ends the program.
func FileSize ¶
FileSize returns the size of the specified file. If it encounters any errors, it logs them and ends the program.
func OpenFile ¶
OpenFile opens the file at the specified location. If it encounters any errors, it logs them and ends the program.
func OverwriteFile ¶
OverwriteFile overwrites the previous contents of the passed in file with the specified contents. If it encounters any errors, it logs them and ends the program.
Types ¶
This section is empty.