From 36bb229b3211e9d10be20c602c28680308a76e47 Mon Sep 17 00:00:00 2001 From: Hailiang Wang Date: Thu, 2 Aug 2012 10:57:16 +0800 Subject: [PATCH] Using iota instread of numbers to make code cleaner. --- socks.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/socks.go b/socks.go index 5b30149..dc7c0e6 100644 --- a/socks.go +++ b/socks.go @@ -46,9 +46,9 @@ import ( // Constants to choose which version of SOCKS protocol to use. const ( - SOCKS4 = 1 - SOCKS4A = 2 - SOCKS5 = 3 + SOCKS4 = iota + SOCKS4A + SOCKS5 ) // DialSocksProxy returns the dial function to be used in http.Transport object.