MCPcopy Create free account
hub / github.com/sergi/go-diff / Diff

Struct Diff

diffmatchpatch/diff.go:40–43  ·  view source on GitHub ↗

Diff represents one diff operation

Source from the content-addressed store, hash-verified

38
39// Diff represents one diff operation
40type Diff struct {
41 Type Operation
42 Text string
43}
44
45// splice removes amount elements from slice at index index, replacing them with elements.
46func splice(slice []Diff, index int, amount int, elements ...Diff) []Diff {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected