Versions in this module Expand all Collapse all v0 v0.1.1 Nov 4, 2026 v0.1.0 Nov 4, 2026 Changes in this version + func FromByte(s string, b int) int + func FromRune(s string, r int) int + func Len(s string) int + func LineCol(s string, off int) (line, col int) + func Offset(s string, line, col int) int + func ToByte(s string, off int) int + func ToRune(s string, off int) int + type Client interface + InputIndexAt func(x, y int) int + InputMarked func() (start, end int) + InputMultiline func() bool + InputReadOnly func() bool + InputRect func(start, end int) (x, y, w, h int) + InputRevision func() uint64 + InputSelection func() (anchor, focus int) + InputText func() string + ReplaceInput func(start, end int, text string) + SetInputSelection func(anchor, focus int) + SetMarkedInput func(text string, selStart, selEnd, replStart, replEnd int) + UnmarkInput func() + type Edit struct + End int + Start int + Text string + func Reconcile(prev, next State) Edit + func (e Edit) Apply(text string) string + func (e Edit) IsZero() bool + type State struct + Anchor int + Focus int + MarkEnd int + MarkStart int + Text string + func StateOf(c Client) State