file

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Seq int

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func (*File) CanRedo

func (f *File) CanRedo() bool

func (*File) CanUndo

func (f *File) CanUndo() bool

func (*File) Close

func (f *File) Close()

func (*File) Delete

func (f *File) Delete(p0, p1 int)

func (*File) Insert

func (f *File) Insert(p0 int, s []rune)

func (*File) Len

func (f *File) Len() int

func (*File) Mark

func (f *File) Mark()

func (*File) Mod

func (f *File) Mod() bool

func (*File) Name

func (f *File) Name() []rune

func (*File) Read

func (f *File) Read(pos int, data []rune)

func (*File) RedoSeq

func (f *File) RedoSeq() int

return sequence number of pending redo

func (*File) ResetLogs

func (f *File) ResetLogs()

func (*File) Seq

func (f *File) Seq() int

func (*File) SetMod

func (f *File) SetMod(b bool)

func (*File) SetName

func (f *File) SetName(name []rune)

func (*File) SetSeq

func (f *File) SetSeq(seq int)

func (*File) SetView

func (f *File) SetView(v View)

func (*File) Truncate

func (f *File) Truncate()

func (*File) Undo

func (f *File) Undo(isundo bool, q0p, q1p *int)

type View

type View interface {
	Insert(int, []rune)
	Delete(int, int)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL