Documentation ¶
Index ¶
- type Pager
- type ViewBuffer
- func (v *ViewBuffer) CurrentView() []string
- func (v *ViewBuffer) ScrollBottom()
- func (v *ViewBuffer) ScrollDown()
- func (v *ViewBuffer) ScrollDownN(n int)
- func (v *ViewBuffer) ScrollToLine(projectedBeginIndex int)
- func (v *ViewBuffer) ScrollTop()
- func (v *ViewBuffer) ScrollUp()
- func (v *ViewBuffer) Search(token string) bool
- func (v *ViewBuffer) SearchFromLine(lineIndex int, searchToken string, stopAtLineIndex int) (int, bool)
- func (v *ViewBuffer) SetMaxHeight(height int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ViewBuffer ¶
type ViewBuffer struct {
// contains filtered or unexported fields
}
func NewViewBuffer ¶
func NewViewBuffer(r io.Reader) *ViewBuffer
func (*ViewBuffer) CurrentView ¶
func (v *ViewBuffer) CurrentView() []string
func (*ViewBuffer) ScrollBottom ¶
func (v *ViewBuffer) ScrollBottom()
func (*ViewBuffer) ScrollDown ¶
func (v *ViewBuffer) ScrollDown()
func (*ViewBuffer) ScrollDownN ¶
func (v *ViewBuffer) ScrollDownN(n int)
func (*ViewBuffer) ScrollToLine ¶
func (v *ViewBuffer) ScrollToLine(projectedBeginIndex int)
func (*ViewBuffer) ScrollTop ¶
func (v *ViewBuffer) ScrollTop()
func (*ViewBuffer) ScrollUp ¶
func (v *ViewBuffer) ScrollUp()
func (*ViewBuffer) Search ¶
func (v *ViewBuffer) Search(token string) bool
func (*ViewBuffer) SearchFromLine ¶
func (*ViewBuffer) SetMaxHeight ¶
func (v *ViewBuffer) SetMaxHeight(height int)
Click to show internal directories.
Click to hide internal directories.