Versions in this module Expand all Collapse all v0 v0.14.6 Oct 10, 2026 v0.14.5 Oct 10, 2026 Changes in this version + const BufSize + const MaxLineSize + var ErrBOF = errors.New("beginning of file") + type LinePtr struct + LineNum int64 + Offset int64 + RealLineNum int64 + type LogView struct + File *os.File + MatchRe *regexp.Regexp + MultiBuf *MultiBufferByteGetter + func MakeLogView(file *os.File) *LogView + func (lv *LogView) Close() + func (lv *LogView) FirstLinePtr() (*LinePtr, error) + func (lv *LogView) LastLinePtr(linePtr *LinePtr) (*LinePtr, error) + func (lv *LogView) Move(linePtr *LinePtr, offset int) (int, *LinePtr, error) + func (lv *LogView) NextLinePtr(linePtr *LinePtr) (*LinePtr, error) + func (lv *LogView) PrevLinePtr(linePtr *LinePtr) (*LinePtr, error) + func (lv *LogView) ReadLineData(linePtr *LinePtr) ([]byte, error) + func (lv *LogView) ReadWindow(linePtr *LinePtr, winSize int) ([][]byte, error) + type MultiBufferByteGetter struct + BufSize int64 + Buffers [][]byte + EOF bool + File *os.File + Offset int64 + func MakeMultiBufferByteGetter(file *os.File, bufSize int64) *MultiBufferByteGetter + func (mb *MultiBufferByteGetter) GetByte(offset int64) (byte, error) + func (mb *MultiBufferByteGetter) NextLine(offset int64) (int64, error) + func (mb *MultiBufferByteGetter) PrevLine(offset int64) (int64, error)