mirror of
https://github.com/golang/go.git
synced 2025-11-10 05:31:03 +00:00
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>
This commit is contained in:
parent
9c258c6aa6
commit
f23c37f67a
5 changed files with 7 additions and 11 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue