# README
go-git-diff

A tool for developer to parse output of git diff command.
Usage
- diff: A parser that parse output of git diff command to struct diff.
Example
package amin
import (
"github.com/lower-coder/go-git-diff/diff"
)
const diffText = `diff --git a/file1 b/file1
index 504d2a1..50ccec3 100644
--- a/file1
+++ b/file1
@@ -1,4 +1,4 @@
+add a line
some
lines
-in
file1`
func main() {
d := diff.NewDiff()
d.Parse(diffText)
}
# Packages
Package diff 元数据.