diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-10-27 15:12:18 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-10-28 11:29:31 +0100 |
| commit | 668aa5dae1690d1a061da728f83b2450485d47f4 (patch) | |
| tree | 1f8172827cc8306888d6678ffd8ccd7b09e1b4fa /credentials.go | |
| parent | 9c6db70fc2836b6f5eb56c505f9cc82461b999c3 (diff) | |
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.
Diffstat (limited to 'credentials.go')
| -rw-r--r-- | credentials.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |
