From dc752cef88c5eb259e044957355e07b0f1e93001 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 13 Dec 2015 03:24:20 +0100 Subject: Make constants non-zero based --- messages.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'messages.go') diff --git a/messages.go b/messages.go index 444e4d8..859061a 100644 --- a/messages.go +++ b/messages.go @@ -81,7 +81,7 @@ type Status int // Statuses const ( - StatusUnknown Status = iota + StatusUnknown Status = iota + 1 StatusPending StatusProcessing StatusValid @@ -112,7 +112,7 @@ func (s *Status) UnmarshalText(b []byte) error { type Resource int const ( - ResNewReg Resource = iota + ResNewReg Resource = iota + 1 ResRecoverReg ResNewAuthz ResNewCert @@ -142,7 +142,7 @@ func (r Resource) MarshalText() ([]byte, error) { type IdentType int -const IdentDNS IdentType = iota +const IdentDNS IdentType = iota + 1 var identTypes = map[IdentType]string{ IdentDNS: "dns", @@ -165,7 +165,7 @@ func (i *IdentType) UnmarshalText(b []byte) error { type ChallengeType int const ( - ChallengeHTTP ChallengeType = iota + ChallengeHTTP ChallengeType = iota + 1 ChallengeTLS ChallengePOP ChallengeDNS -- cgit v1.2.3