Skip to content

Commit

Permalink
Using iota instread of numbers to make code cleaner.
Browse files Browse the repository at this point in the history
  • Loading branch information
h12w committed Aug 2, 2012
1 parent 9650bff commit 36bb229
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions socks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 36bb229

Please sign in to comment.