aboutsummaryrefslogtreecommitdiff
path: root/src/net/dnsclient_unix.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2015-10-05 11:05:10 -0700
committerIan Lance Taylor <iant@golang.org>2015-10-05 22:39:12 +0000
commitf23c37f67ac1388b7d073f78d9061bfe806a1b2f (patch)
tree8fbd3fd7ce070cae3186057a8fa6440f52862ceb /src/net/dnsclient_unix.go
parent9c258c6aa6880268a0be9f2e90ea11f9e4ded150 (diff)
downloadgo-f23c37f67ac1388b7d073f78d9061bfe806a1b2f.tar.gz
go-f23c37f67ac1388b7d073f78d9061bfe806a1b2f.zip
net: remove imports of strconv
The net package already has support for limited uses of the strconv package. Despite this, a few uses of strconv have crept in over time. Remove them and use the existing net support instead. Change-Id: Icdb4bdaa8e1197f1119a96cddcf548ed4a551b74 Reviewed-on: https://go-review.googlesource.com/15400 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/net/dnsclient_unix.go')
-rw-r--r--src/net/dnsclient_unix.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/dnsclient_unix.go b/src/net/dnsclient_unix.go
index 1fbe085bbf..94282ee79e 100644
--- a/src/net/dnsclient_unix.go
+++ b/src/net/dnsclient_unix.go
@@ -20,7 +20,6 @@ import (
"io"
"math/rand"
"os"
- "strconv"
"sync"
"time"
)
@@ -371,7 +370,7 @@ func (o hostLookupOrder) String() string {
if s, ok := lookupOrderName[o]; ok {
return s
}
- return "hostLookupOrder=" + strconv.Itoa(int(o)) + "??"
+ return "hostLookupOrder=" + itoa(int(o)) + "??"
}
// goLookupHost is the native Go implementation of LookupHost.