Versions in this module Expand all Collapse all v0 v0.2.0 Nov 29, 2026 Changes in this version + var ErrLineEnding = errors.New("textedit: line-ending change") + var ErrMatch = errors.New("textedit: expected unique exact match") + var ErrText = errors.New("textedit: invalid UTF-8 text") + var ErrTooLarge = errors.New("textedit: text exceeds byte limit") + func Digest(s string) string + func Edit(old, oldText, newText string, maxBytes int) (string, error) + func ValidRevision(s string) bool + func Validate(s string, maxBytes int) error