Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
Decompress takes a compression type and a reader and returns reader that will be decompressed if the type is supported.
func DetectType ¶
DetectType attempts to detect the file format and compression types by looking at the file path extensions.
Types ¶
type Reader ¶
Reader encapsulates a stdin stream.
type UniversalReader ¶
type UniversalReader struct {
// contains filtered or unexported fields
}
UniversalReader wraps an io.Reader to replace carriage returns with newlines. This is used with the csv.Reader so it can properly delimit lines.
func NewUniversalReader ¶
func NewUniversalReader(r io.Reader) *UniversalReader
func (*UniversalReader) Close ¶
func (r *UniversalReader) Close() error
Click to show internal directories.
Click to hide internal directories.