Documentation ¶
Overview ¶
Package aio provides buffered file I/O.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddReadSuffix ¶
AddReadSuffix adds a supported suffix for automatic decompression. suffix should include the dot. f should take a raw reader and return a reader that decompresses the data.
func AddWriteSuffix ¶
func AddWriteSuffix(suffix string, f func(io.WriteCloser) ( io.WriteCloser, error))
AddWriteSuffix adds a supported suffix for automatic compression. suffix should include the dot. f should take a raw writer and return a writer that compresses the data.
Types ¶
type Reader ¶
func Open ¶
Open opens a file for reading, with a buffer. Decompresses the data according to the file's suffix.
type Writer ¶
func Append ¶
Append opens a file for writing, with a buffer. Appends to previously existing content if any. Compresses the data according to the file's suffix.
func AppendRaw ¶
AppendRaw opens a file for writing, with a buffer. Appends to previously existing content if any.
func Create ¶
Create opens a file for writing, with a buffer. Erases any previously existing content. Compresses the data according to the file's suffix.