Versions in this module Expand all Collapse all v0 v0.1.1 May 12, 2022 v0.1.0 May 12, 2022 Changes in this version + func ApplyEdits(before string, edits []TextEdit) string + func SortTextEdits(d []TextEdit) + type ComputeEdits func(uri span.URI, before, after string) ([]TextEdit, error) + type Hunk struct + FromLine int + Lines []Line + ToLine int + type Line struct + Content string + Kind OpKind + type OpKind int + const Delete + const Equal + const Insert + func (k OpKind) String() string + type TextEdit struct + NewText string + Span span.Span + func LineEdits(before string, edits []TextEdit) []TextEdit + type Unified struct + From string + Hunks []*Hunk + To string + func ToUnified(from, to string, content string, edits []TextEdit) Unified + func (u Unified) Format(f fmt.State, r rune)