Documentation
¶
Index ¶
- type Editor
- func (e *Editor) BackSpace()
- func (e *Editor) CancelContext()
- func (e *Editor) Clear()
- func (e *Editor) InsertToBuffer(b []byte, i int)
- func (e *Editor) Launch()
- func (e *Editor) Read()
- func (e *Editor) ReadBufferByte() []byte
- func (e *Editor) ReadBufferString() string
- func (e *Editor) ReadInitialBufferByte() []byte
- func (e *Editor) ReadInitialBufferString() string
- func (e *Editor) Redo()
- func (e *Editor) RemoveFromBuffer(i int)
- func (e *Editor) Save()
- func (e *Editor) ScrollDown()
- func (e *Editor) ScrollUp()
- func (e *Editor) Undo()
- func (e *Editor) UpdateCursorPosition()
- func (e *Editor) Write(char rune)
- type LineCounter
- type LineNumbering
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
func (*Editor) CancelContext ¶
func (e *Editor) CancelContext()
func (*Editor) InsertToBuffer ¶
b: the text to be written to the buffer; i: the index to insert the text at
func (*Editor) ReadBufferByte ¶
func (*Editor) ReadBufferString ¶
func (*Editor) ReadInitialBufferByte ¶
func (*Editor) ReadInitialBufferString ¶
func (*Editor) RemoveFromBuffer ¶
func (*Editor) ScrollDown ¶
func (e *Editor) ScrollDown()
func (*Editor) UpdateCursorPosition ¶
func (e *Editor) UpdateCursorPosition()
type LineCounter ¶
type LineCounter []int // Each element represents a line, and the value is the number of characters
func NewLineCounter ¶
func NewLineCounter(v int) LineCounter
type LineNumbering ¶
type LineNumbering struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.