aboutsummaryrefslogtreecommitdiffstats
path: root/examples/showcase
diff options
context:
space:
mode:
Diffstat (limited to 'examples/showcase')
-rw-r--r--examples/showcase/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/showcase/main.go b/examples/showcase/main.go
index ff5c7d3..4d1206d 100644
--- a/examples/showcase/main.go
+++ b/examples/showcase/main.go
@@ -6,6 +6,8 @@ import (
"strings"
"gopkg.in/src-d/go-git.v4"
+ "gopkg.in/src-d/go-git.v4/plumbing/object"
+
. "gopkg.in/src-d/go-git.v4/examples"
)
@@ -42,7 +44,7 @@ func main() {
CheckIfError(err)
// ... get the files iterator and print the file
- tree.Files().ForEach(func(f *git.File) error {
+ tree.Files().ForEach(func(f *object.File) error {
fmt.Printf("100644 blob %s %s\n", f.Hash, f.Name)
return nil
})