From 008e1efb35b07b4a91dba69369b8217862f11abd Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Wed, 11 Sep 2013 23:01:27 +0200 Subject: Object types are constants Define the object type values as constants --- object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.go') diff --git a/object.go b/object.go index c6cd8a8..98a84a4 100644 --- a/object.go +++ b/object.go @@ -10,7 +10,7 @@ import "runtime" type ObjectType int -var ( +const ( OBJ_ANY ObjectType = C.GIT_OBJ_ANY OBJ_BAD ObjectType = C.GIT_OBJ_BAD OBJ_COMMIT ObjectType = C.GIT_OBJ_COMMIT -- cgit v1.2.3