From 931f187301d0c262a4ecdded891e4fed9387b4e4 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Tue, 21 May 2013 15:14:26 +0200 Subject: Implement a reference iterator Wrap the reference iterators, and provide a Iter() function to get them through a channel. --- git.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git.go') diff --git a/git.go b/git.go index fdc640a..19f4a32 100644 --- a/git.go +++ b/git.go @@ -8,6 +8,7 @@ package git import "C" import ( "bytes" + "errors" "unsafe" "strings" ) @@ -18,6 +19,10 @@ const ( ENOTFOUND = C.GIT_ENOTFOUND ) +var ( + ErrIterOver = errors.New("Iteration is over") +) + func init() { C.git_threads_init() } -- cgit v1.2.3