Documentation
¶
Overview ¶
Package file handles various file operations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func Open ¶
Open function attempts to open a file and returns the handler for said file. This function takes a parameter append which if set to false will truncate the file upon writing to it. The log parameter denotes whether or not to look inside of the log folder when attempting to open a given file.
func (*Handler) Close ¶
Close function is attached to the current file and will attempt to close the current file. The boolean parameter delete, if set to true, will also attempt to delete the file upon closing it.
Click to show internal directories.
Click to hide internal directories.