Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OffsetRange ¶
OffsetRange represents a content block of a file.
func SplitLineChunks ¶
func SplitLineChunks(filename string, chunks int) ([]OffsetRange, error)
SplitLineChunks splits file into chunks. The whole line are guaranteed to be split in the same chunk.
type RangeReader ¶
type RangeReader struct {
// contains filtered or unexported fields
}
A RangeReader is used to read a range of content from a file.
func NewRangeReader ¶
func NewRangeReader(file *os.File, start, stop int64) *RangeReader
NewRangeReader returns a RangeReader, which will read the range of content from file.
Click to show internal directories.
Click to hide internal directories.