From 119592d80f718e501b0be22b47786ccc22bf2a73 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 5 Dec 2011 15:48:46 -0500 Subject: [PATCH] use new strconv API All but 3 cases (in gcimporter.go and hixie.go) are automatic conversions using gofix. No attempt is made to use the new Append functions even though there are definitely opportunities. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5447069 --- handshake_server_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handshake_server_test.go b/handshake_server_test.go index e00c32c..d98e13d 100644 --- a/handshake_server_test.go +++ b/handshake_server_test.go @@ -159,7 +159,7 @@ func TestHandshakeServerSSLv3(t *testing.T) { var serve = flag.Bool("serve", false, "run a TLS server on :10443") var testCipherSuites = flag.String("ciphersuites", - "0x"+strconv.Itob(int(TLS_RSA_WITH_RC4_128_SHA), 16), + "0x"+strconv.FormatInt(int64(TLS_RSA_WITH_RC4_128_SHA), 16), "cipher suites to accept in serving mode") func TestRunServer(t *testing.T) { @@ -170,7 +170,7 @@ func TestRunServer(t *testing.T) { suites := strings.Split(*testCipherSuites, ",") testConfig.CipherSuites = make([]uint16, len(suites)) for i := range suites { - suite, err := strconv.Btoui64(suites[i], 0) + suite, err := strconv.ParseUint(suites[i], 0, 64) if err != nil { panic(err) }