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. --- credentials.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'credentials.go') diff --git a/credentials.go b/credentials.go index c5ed055..b04bf98 100644 --- a/credentials.go +++ b/credentials.go @@ -11,9 +11,9 @@ type CredType uint const ( CredTypeUserpassPlaintext CredType = C.GIT_CREDTYPE_USERPASS_PLAINTEXT - CredTypeSshKey = C.GIT_CREDTYPE_SSH_KEY - CredTypeSshCustom = C.GIT_CREDTYPE_SSH_CUSTOM - CredTypeDefault = C.GIT_CREDTYPE_DEFAULT + CredTypeSshKey CredType = C.GIT_CREDTYPE_SSH_KEY + CredTypeSshCustom CredType = C.GIT_CREDTYPE_SSH_CUSTOM + CredTypeDefault CredType = C.GIT_CREDTYPE_DEFAULT ) type Cred struct { -- cgit v1.2.3