ref: 94011e3762ca25b8ab3a9b9fe0d7a9e155381477
dir: /diff/lines/chunk.go/
package lines
// Chunk represents a contiguous region of lines categorized
// as unchanged, deleted, or added.
type Chunk struct {
Kind ChunkKind
Data []byte
}
// ChunkKind enumerates the type of diff chunk.
type ChunkKind int
const (
// ChunkKindUnchanged represents an unchanged diff chunk.
ChunkKindUnchanged ChunkKind = iota
// ChunkKindDeleted represents a deleted diff chunk.
ChunkKindDeleted
// ChunkKindAdded represents an added diff chunk.
ChunkKindAdded
)