From: Sergey Matveev Date: Thu, 8 Dec 2016 20:39:01 +0000 (+0300) Subject: Simple types without useless optimization X-Git-Tag: 7.1^2~20 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=7812f1aca5de73e04ceec6a570772785ed7a8b0d Simple types without useless optimization Protocol type is used only in few places, so no need in extra memory space optimization -- keep code simple. --- diff --git a/src/cypherpunks.ru/govpn/client/client.go b/src/cypherpunks.ru/govpn/client/client.go index 093251d..e722a7f 100644 --- a/src/cypherpunks.ru/govpn/client/client.go +++ b/src/cypherpunks.ru/govpn/client/client.go @@ -30,7 +30,7 @@ import ( "cypherpunks.ru/govpn" ) -type Protocol uint8 +type Protocol int const ( ProtocolUDP Protocol = iota