Documentation ¶
Overview ¶
Package file implements file devices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
Reader is a file used only for reading that satisfies this packages Reader interface.
func (*Reader) File ¶
File returns the underlying os.File, and a reset function that must be called to reset the file device after any and all low-level access is completed.
It is the callers responsibility to make sure the file is at the logical "end" where reading may continue and then calling reset.
type Writer ¶
Writer represents a file used for writing.
It is written to a tmp file and renamed on Close.
func (*Writer) File ¶
File flushes the buffer, returns the underlying os.File, and a reset function that must be called to reset the file device after any and all low-level access is completed.
It is the callers responsibility to make sure the file is at the logical "end" where writing may continue and then calling reset.