Versions in this module Expand all Collapse all v0 v0.1.0 May 10, 2026 Changes in this version + type Diff struct + Files []File + func Parse(r io.Reader) (*Diff, error) + func ParseBytes(b []byte) (*Diff, error) + type File struct + Hunks []Hunk + IsBinary bool + IsCopy bool + IsDelete bool + IsNew bool + IsRename bool + IsTooLarge bool + NewMode string + NewPath string + OldMode string + OldPath string + Score int + SizeBytes int + type Hunk struct + Lines []Line + NewLines int + NewStart int + OldLines int + OldStart int + Section string + type Line struct + Content string + Kind LineKind + NewLineNo int + OldLineNo int + type LineKind int + const LineAdd + const LineContext + const LineDelete + const LineNoNewline