ref: 803089a76171db1dd5b891fb6dfa1b7e7f3d50d2
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
)