Documentation
¶
Index ¶
- type TextBuffer
- func (tb *TextBuffer) Column() int
- func (tb *TextBuffer) Delete(n int) string
- func (tb *TextBuffer) End()
- func (tb *TextBuffer) Goto(pos int)
- func (tb *TextBuffer) HMove(n int)
- func (tb *TextBuffer) Home()
- func (tb *TextBuffer) Insert(text string)
- func (tb *TextBuffer) Length() int
- func (tb *TextBuffer) Line() int
- func (tb *TextBuffer) LineCount() int
- func (tb *TextBuffer) LineLength() int
- func (tb *TextBuffer) LineString() string
- func (tb *TextBuffer) Pair() (left string, right string)
- func (tb *TextBuffer) Position() int
- func (tb *TextBuffer) Redo()
- func (tb *TextBuffer) String() string
- func (tb *TextBuffer) Undo()
- func (tb *TextBuffer) VMove(n int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextBuffer ¶
type TextBuffer struct {
// contains filtered or unexported fields
}
func New ¶
func New(text string) *TextBuffer
func (*TextBuffer) Column ¶
func (tb *TextBuffer) Column() int
func (*TextBuffer) Delete ¶
func (tb *TextBuffer) Delete(n int) string
func (*TextBuffer) End ¶
func (tb *TextBuffer) End()
func (*TextBuffer) Goto ¶
func (tb *TextBuffer) Goto(pos int)
func (*TextBuffer) HMove ¶ added in v0.1.3
func (tb *TextBuffer) HMove(n int)
func (*TextBuffer) Home ¶
func (tb *TextBuffer) Home()
func (*TextBuffer) Insert ¶
func (tb *TextBuffer) Insert(text string)
func (*TextBuffer) Length ¶
func (tb *TextBuffer) Length() int
func (*TextBuffer) Line ¶
func (tb *TextBuffer) Line() int
func (*TextBuffer) LineCount ¶ added in v0.1.3
func (tb *TextBuffer) LineCount() int
func (*TextBuffer) LineLength ¶
func (tb *TextBuffer) LineLength() int
func (*TextBuffer) LineString ¶ added in v0.1.1
func (tb *TextBuffer) LineString() string
func (*TextBuffer) Pair ¶
func (tb *TextBuffer) Pair() (left string, right string)
func (*TextBuffer) Position ¶ added in v0.1.6
func (tb *TextBuffer) Position() int
func (*TextBuffer) Redo ¶ added in v0.1.6
func (tb *TextBuffer) Redo()
func (*TextBuffer) String ¶
func (tb *TextBuffer) String() string
func (*TextBuffer) Undo ¶ added in v0.1.6
func (tb *TextBuffer) Undo()
func (*TextBuffer) VMove ¶ added in v0.1.3
func (tb *TextBuffer) VMove(n int)
Click to show internal directories.
Click to hide internal directories.