From 668aa5dae1690d1a061da728f83b2450485d47f4 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Mon, 27 Oct 2014 15:12:18 +0100 Subject: Make the constants have types While Go will assign the correct type to a const block when it auto-creates the values, assigning makes the const be typeless and will only gain it in each particular use. Make each constant in the blocks have an assigned type. --- object.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'object.go') diff --git a/object.go b/object.go index f351640..a3bf652 100644 --- a/object.go +++ b/object.go @@ -10,12 +10,12 @@ import "runtime" type ObjectType int const ( - ObjectAny ObjectType = C.GIT_OBJ_ANY - ObjectBad = C.GIT_OBJ_BAD - ObjectCommit = C.GIT_OBJ_COMMIT - ObjectTree = C.GIT_OBJ_TREE - ObjectBlob = C.GIT_OBJ_BLOB - ObjectTag = C.GIT_OBJ_TAG + ObjectAny ObjectType = C.GIT_OBJ_ANY + ObjectBad ObjectType = C.GIT_OBJ_BAD + ObjectCommit ObjectType = C.GIT_OBJ_COMMIT + ObjectTree ObjectType = C.GIT_OBJ_TREE + ObjectBlob ObjectType = C.GIT_OBJ_BLOB + ObjectTag ObjectType = C.GIT_OBJ_TAG ) type Object interface { -- cgit v1.2.3