Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FpGzip ¶
type FpGzip struct {
// contains filtered or unexported fields
}
func Wrap ¶
func Wrap(fp io.ReadCloser) (*FpGzip, error)
Wrap takes a source like a file pointer or http stream and wraps it so the correct Close and Read will be called. Although we use the name fp, it should be happy if it is fed an http stream.
func WrapMaybe ¶
func WrapMaybe(fpIn ReadSeekCloser) (*FpGzip, error)
WrapMaybe will decide if the underlying stream is compressed and wrap the file pointer if necessary. You do lose something. If you pass in something which can seek, you get back a ReadCloser which cannot seek. This is the price one pays for reading from a compressed reader.
Click to show internal directories.
Click to hide internal directories.