1
0
mirror of https://github.com/golang/go synced 2024-11-24 23:57:57 -07:00

renaming_3: gofix -r go1pkgrename src/pkg/[m-z]*

R=rsc
CC=golang-dev
https://golang.org/cl/5345045
This commit is contained in:
Rob Pike 2011-11-08 15:41:54 -08:00
parent 30aa701fec
commit 45e3bcb343
87 changed files with 126 additions and 126 deletions

View File

@ -10,7 +10,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"io" "io"
"rand" "math/rand"
"strings" "strings"
) )

View File

@ -6,9 +6,9 @@ package big
import ( import (
"bytes" "bytes"
"encoding/gob"
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"gob"
"testing" "testing"
"testing/quick" "testing/quick"
) )

View File

@ -21,7 +21,7 @@ package big
import ( import (
"errors" "errors"
"io" "io"
"rand" "math/rand"
) )
// An unsigned integer x of the form // An unsigned integer x of the form

View File

@ -6,8 +6,8 @@ package big
import ( import (
"bytes" "bytes"
"encoding/gob"
"fmt" "fmt"
"gob"
"testing" "testing"
) )

View File

@ -6,10 +6,10 @@ package multipart
import ( import (
"bytes" "bytes"
"encoding/json"
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"json"
"strings" "strings"
"testing" "testing"
) )

View File

@ -7,7 +7,7 @@ package net
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"rand" "math/rand"
"sort" "sort"
) )

View File

@ -17,7 +17,7 @@
package net package net
import ( import (
"rand" "math/rand"
"sync" "sync"
"time" "time"
) )

View File

@ -12,14 +12,14 @@ import (
"crypto/tls" "crypto/tls"
"errors" "errors"
"fmt" "fmt"
"http"
"io" "io"
"io/ioutil" "io/ioutil"
"net" "net"
"net/http"
"net/url"
"os" "os"
"strconv" "strconv"
"strings" "strings"
"url"
) )
// Request returns the HTTP request as represented in the current // Request returns the HTTP request as represented in the current

View File

@ -16,12 +16,12 @@ package cgi
import ( import (
"bufio" "bufio"
"exec"
"fmt" "fmt"
"http"
"io" "io"
"log" "log"
"net/http"
"os" "os"
"os/exec"
"path/filepath" "path/filepath"
"regexp" "regexp"
"runtime" "runtime"

View File

@ -8,13 +8,13 @@ package cgi
import ( import (
"bufio" "bufio"
"exec"
"fmt" "fmt"
"http"
"http/httptest"
"io" "io"
"net" "net"
"net/http"
"net/http/httptest"
"os" "os"
"os/exec"
"path/filepath" "path/filepath"
"runtime" "runtime"
"strconv" "strconv"

View File

@ -10,7 +10,7 @@ package cgi
import ( import (
"fmt" "fmt"
"http" "net/http"
"os" "os"
"testing" "testing"
) )

View File

@ -14,8 +14,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"io" "io"
"net/url"
"strings" "strings"
"url"
) )
// A Client is an HTTP client. Its zero value (DefaultClient) is a usable client // A Client is an HTTP client. Its zero value (DefaultClient) is a usable client

View File

@ -10,15 +10,15 @@ import (
"crypto/tls" "crypto/tls"
"errors" "errors"
"fmt" "fmt"
. "http"
"http/httptest"
"io" "io"
"io/ioutil" "io/ioutil"
"net" "net"
. "net/http"
"net/http/httptest"
"net/url"
"strconv" "strconv"
"strings" "strings"
"testing" "testing"
"url"
) )
var robotsTxtHandler = HandlerFunc(func(w ResponseWriter, r *Request) { var robotsTxtHandler = HandlerFunc(func(w ResponseWriter, r *Request) {

View File

@ -5,8 +5,8 @@
package http package http
import ( import (
"encoding/json"
"fmt" "fmt"
"json"
"reflect" "reflect"
"testing" "testing"
"time" "time"

View File

@ -8,10 +8,10 @@ package fcgi
import ( import (
"fmt" "fmt"
"http"
"http/cgi"
"io" "io"
"net" "net"
"net/http"
"net/http/cgi"
"os" "os"
"time" "time"
) )

View File

@ -5,8 +5,8 @@
package http_test package http_test
import ( import (
"http"
"io/ioutil" "io/ioutil"
"net/http"
"path/filepath" "path/filepath"
"testing" "testing"
) )

View File

@ -17,7 +17,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"time" "time"
"utf8" "unicode/utf8"
) )
// A Dir implements http.FileSystem using the native file // A Dir implements http.FileSystem using the native file

View File

@ -6,14 +6,14 @@ package http_test
import ( import (
"fmt" "fmt"
. "http"
"http/httptest"
"io/ioutil" "io/ioutil"
. "net/http"
"net/http/httptest"
"net/url"
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
"testing" "testing"
"url"
) )
const ( const (

View File

@ -7,7 +7,7 @@ package httptest
import ( import (
"bytes" "bytes"
"http" "net/http"
) )
// ResponseRecorder is an implementation of http.ResponseWriter that // ResponseRecorder is an implementation of http.ResponseWriter that

View File

@ -11,8 +11,8 @@ import (
"crypto/tls" "crypto/tls"
"flag" "flag"
"fmt" "fmt"
"http"
"net" "net"
"net/http"
"os" "os"
"time" "time"
) )

View File

@ -6,8 +6,8 @@ package httputil
import ( import (
"bufio" "bufio"
"http"
"io" "io"
"net/http"
"strconv" "strconv"
"strings" "strings"
) )

View File

@ -8,10 +8,10 @@ import (
"bytes" "bytes"
"errors" "errors"
"fmt" "fmt"
"http"
"io" "io"
"io/ioutil" "io/ioutil"
"net" "net"
"net/http"
"strings" "strings"
) )

View File

@ -7,11 +7,11 @@ package httputil
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"http"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http"
"net/url"
"testing" "testing"
"url"
) )
type dumpTest struct { type dumpTest struct {

View File

@ -9,9 +9,9 @@ package httputil
import ( import (
"bufio" "bufio"
"errors" "errors"
"http"
"io" "io"
"net" "net"
"net/http"
"net/textproto" "net/textproto"
"os" "os"
"sync" "sync"

View File

@ -7,14 +7,14 @@
package httputil package httputil
import ( import (
"http"
"io" "io"
"log" "log"
"net" "net"
"net/http"
"net/url"
"strings" "strings"
"sync" "sync"
"time" "time"
"url"
) )
// ReverseProxy is an HTTP Handler that takes an incoming request and // ReverseProxy is an HTTP Handler that takes an incoming request and

View File

@ -7,11 +7,11 @@
package httputil package httputil
import ( import (
"http"
"http/httptest"
"io/ioutil" "io/ioutil"
"net/http"
"net/http/httptest"
"net/url"
"testing" "testing"
"url"
) )
func TestReverseProxy(t *testing.T) { func TestReverseProxy(t *testing.T) {

View File

@ -28,8 +28,8 @@ import (
"bufio" "bufio"
"bytes" "bytes"
"fmt" "fmt"
"http"
"io" "io"
"net/http"
"os" "os"
"runtime" "runtime"
"runtime/pprof" "runtime/pprof"

View File

@ -9,9 +9,9 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"io" "io"
"net/url"
"reflect" "reflect"
"testing" "testing"
"url"
) )
type reqTest struct { type reqTest struct {

View File

@ -18,9 +18,9 @@ import (
"mime" "mime"
"mime/multipart" "mime/multipart"
"net/textproto" "net/textproto"
"net/url"
"strconv" "strconv"
"strings" "strings"
"url"
) )
const ( const (

View File

@ -7,17 +7,17 @@ package http_test
import ( import (
"bytes" "bytes"
"fmt" "fmt"
. "http"
"http/httptest"
"io" "io"
"io/ioutil" "io/ioutil"
"mime/multipart" "mime/multipart"
. "net/http"
"net/http/httptest"
"net/url"
"os" "os"
"reflect" "reflect"
"regexp" "regexp"
"strings" "strings"
"testing" "testing"
"url"
) )
func TestQuery(t *testing.T) { func TestQuery(t *testing.T) {

View File

@ -10,9 +10,9 @@ import (
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"net/url"
"strings" "strings"
"testing" "testing"
"url"
) )
type reqWriteTest struct { type reqWriteTest struct {

View File

@ -11,9 +11,9 @@ import (
"errors" "errors"
"io" "io"
"net/textproto" "net/textproto"
"net/url"
"strconv" "strconv"
"strings" "strings"
"url"
) )
var respExcludeHeader = map[string]bool{ var respExcludeHeader = map[string]bool{

View File

@ -12,9 +12,9 @@ import (
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"net/url"
"reflect" "reflect"
"testing" "testing"
"url"
) )
type respTest struct { type respTest struct {

View File

@ -11,20 +11,20 @@ import (
"bytes" "bytes"
"crypto/tls" "crypto/tls"
"fmt" "fmt"
. "http"
"http/httptest"
"io" "io"
"io/ioutil" "io/ioutil"
"log" "log"
"net" "net"
. "net/http"
"net/http/httptest"
"net/http/httputil" "net/http/httputil"
"net/url"
"os" "os"
"reflect" "reflect"
"strings" "strings"
"syscall" "syscall"
"testing" "testing"
"time" "time"
"url"
) )
type dummyAddr string type dummyAddr string

View File

@ -20,13 +20,13 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"net" "net"
"net/url"
"path" "path"
"runtime/debug" "runtime/debug"
"strconv" "strconv"
"strings" "strings"
"sync" "sync"
"time" "time"
"url"
) )
// Errors introduced by the HTTP server. // Errors introduced by the HTTP server.

View File

@ -6,10 +6,10 @@ package http_test
import ( import (
"bytes" "bytes"
. "http"
"http/httptest"
"io/ioutil" "io/ioutil"
"log" "log"
. "net/http"
"net/http/httptest"
"strconv" "strconv"
"testing" "testing"
) )

View File

@ -20,10 +20,10 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"net" "net"
"net/url"
"os" "os"
"strings" "strings"
"sync" "sync"
"url"
) )
// DefaultTransport is the default implementation of Transport and is // DefaultTransport is the default implementation of Transport and is

View File

@ -11,15 +11,15 @@ import (
"compress/gzip" "compress/gzip"
"crypto/rand" "crypto/rand"
"fmt" "fmt"
. "http"
"http/httptest"
"io" "io"
"io/ioutil" "io/ioutil"
. "net/http"
"net/http/httptest"
"net/url"
"strconv" "strconv"
"strings" "strings"
"testing" "testing"
"time" "time"
"url"
) )
// TODO: test 5 pipelined requests with responses: 1) OK, 2) OK, Connection: Close // TODO: test 5 pipelined requests with responses: 1) OK, 2) OK, Connection: Close

View File

@ -9,9 +9,9 @@ import (
"expvar" "expvar"
"flag" "flag"
"fmt" "fmt"
"http"
"io" "io"
"log" "log"
"net/http"
"os" "os"
"strconv" "strconv"
) )

View File

@ -6,12 +6,12 @@ package rpc
import ( import (
"bufio" "bufio"
"encoding/gob"
"errors" "errors"
"gob"
"http"
"io" "io"
"log" "log"
"net" "net"
"net/http"
"sync" "sync"
) )

View File

@ -11,9 +11,9 @@ package rpc
import ( import (
"fmt" "fmt"
"http" "net/http"
"sort" "sort"
"template" "text/template"
) )
const debugText = `<html> const debugText = `<html>

View File

@ -5,12 +5,12 @@
package jsonrpc package jsonrpc
import ( import (
"encoding/json"
"errors" "errors"
"fmt" "fmt"
"io" "io"
"json"
"net" "net"
"rpc" "net/rpc"
"testing" "testing"
) )

View File

@ -7,11 +7,11 @@
package jsonrpc package jsonrpc
import ( import (
"encoding/json"
"fmt" "fmt"
"io" "io"
"json"
"net" "net"
"rpc" "net/rpc"
"sync" "sync"
) )

View File

@ -5,10 +5,10 @@
package jsonrpc package jsonrpc
import ( import (
"encoding/json"
"errors" "errors"
"io" "io"
"json" "net/rpc"
"rpc"
"sync" "sync"
) )

View File

@ -114,17 +114,17 @@ package rpc
import ( import (
"bufio" "bufio"
"encoding/gob"
"errors" "errors"
"gob"
"http"
"io" "io"
"log" "log"
"net" "net"
"net/http"
"reflect" "reflect"
"strings" "strings"
"sync" "sync"
"unicode" "unicode"
"utf8" "unicode/utf8"
) )
const ( const (

View File

@ -7,10 +7,10 @@ package rpc
import ( import (
"errors" "errors"
"fmt" "fmt"
"http/httptest"
"io" "io"
"log" "log"
"net" "net"
"net/http/httptest"
"runtime" "runtime"
"strings" "strings"
"sync" "sync"

View File

@ -5,8 +5,8 @@
package netchan package netchan
import ( import (
"encoding/gob"
"errors" "errors"
"gob"
"io" "io"
"reflect" "reflect"
"sync" "sync"

View File

@ -72,7 +72,7 @@ import (
"bytes" "bytes"
"io" "io"
"strings" "strings"
"utf8" "unicode/utf8"
) )
var debug = false var debug = false

View File

@ -14,7 +14,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"unicode" "unicode"
"utf8" "unicode/utf8"
) )
// Errors returned during parsing and execution. Users may extract the information and reformat // Errors returned during parsing and execution. Users may extract the information and reformat

View File

@ -6,10 +6,10 @@ package template
import ( import (
"bytes" "bytes"
"encoding/json"
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"json"
"strings" "strings"
"testing" "testing"
) )

View File

@ -9,8 +9,8 @@ package os
import ( import (
"errors" "errors"
"syscall" "syscall"
"unicode/utf16"
"unsafe" "unsafe"
"utf16"
) )
// ENOENV is the error indicating that an environment variable does not exist. // ENOENV is the error indicating that an environment variable does not exist.

View File

@ -9,7 +9,7 @@ import (
"os" "os"
"sort" "sort"
"strings" "strings"
"utf8" "unicode/utf8"
) )
var ErrBadPattern = errors.New("syntax error in pattern") var ErrBadPattern = errors.New("syntax error in pattern")

View File

@ -7,7 +7,7 @@ package path
import ( import (
"errors" "errors"
"strings" "strings"
"utf8" "unicode/utf8"
) )
var ErrBadPattern = errors.New("syntax error in pattern") var ErrBadPattern = errors.New("syntax error in pattern")

View File

@ -9,15 +9,15 @@ import (
"compress/bzip2" "compress/bzip2"
"fmt" "fmt"
"io" "io"
"math/rand"
old "old/regexp" old "old/regexp"
"os" "os"
"path/filepath" "path/filepath"
"rand"
"regexp/syntax" "regexp/syntax"
"strconv" "strconv"
"strings" "strings"
"testing" "testing"
"utf8" "unicode/utf8"
) )
// TestRE2 tests this package's regexp API against test cases // TestRE2 tests this package's regexp API against test cases

View File

@ -60,7 +60,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"sync" "sync"
"utf8" "unicode/utf8"
) )
var debug = false var debug = false

View File

@ -8,7 +8,7 @@ import (
"sort" "sort"
"strings" "strings"
"unicode" "unicode"
"utf8" "unicode/utf8"
) )
// An Error describes a failure to parse a regular expression // An Error describes a failure to parse a regular expression

View File

@ -6,7 +6,7 @@ package runtime_test
import ( import (
"math" "math"
"rand" "math/rand"
. "runtime" . "runtime"
"testing" "testing"
) )

View File

@ -7,7 +7,7 @@ package sort_test
import ( import (
"fmt" "fmt"
"math" "math"
"rand" "math/rand"
. "sort" . "sort"
"strconv" "strconv"
"testing" "testing"

View File

@ -8,7 +8,7 @@ import (
"bytes" "bytes"
"strings" "strings"
"unicode" "unicode"
"utf8" "unicode/utf8"
) )
const lowerhex = "0123456789abcdef" const lowerhex = "0123456789abcdef"

View File

@ -7,7 +7,7 @@ package strings
import ( import (
"errors" "errors"
"io" "io"
"utf8" "unicode/utf8"
) )
// A Reader implements the io.Reader, io.ByteScanner, and // A Reader implements the io.Reader, io.ByteScanner, and

View File

@ -7,7 +7,7 @@ package strings
import ( import (
"unicode" "unicode"
"utf8" "unicode/utf8"
) )
// explode splits s into an array of UTF-8 sequences, one per Unicode character (still strings) up to a maximum of n (n < 0 means no limit). // explode splits s into an array of UTF-8 sequences, one per Unicode character (still strings) up to a maximum of n (n < 0 means no limit).

View File

@ -12,8 +12,8 @@ import (
. "strings" . "strings"
"testing" "testing"
"unicode" "unicode"
"unicode/utf8"
"unsafe" "unsafe"
"utf8"
) )
func eq(a, b []string) bool { func eq(a, b []string) bool {

View File

@ -8,8 +8,8 @@ package syscall
import ( import (
"sync" "sync"
"unicode/utf16"
"unsafe" "unsafe"
"utf16"
) )
var ForkLock sync.RWMutex var ForkLock sync.RWMutex

View File

@ -7,8 +7,8 @@
package syscall package syscall
import ( import (
"unicode/utf16"
"unsafe" "unsafe"
"utf16"
) )
const OS = "windows" const OS = "windows"

View File

@ -9,7 +9,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"math" "math"
"rand" "math/rand"
"reflect" "reflect"
"strings" "strings"
) )

View File

@ -5,7 +5,7 @@
package quick package quick
import ( import (
"rand" "math/rand"
"reflect" "reflect"
"testing" "testing"
) )

View File

@ -7,7 +7,7 @@ package script
import ( import (
"fmt" "fmt"
"rand" "math/rand"
"reflect" "reflect"
"strings" "strings"
) )

View File

@ -31,7 +31,7 @@ import (
"io" "io"
"os" "os"
"unicode" "unicode"
"utf8" "unicode/utf8"
) )
// TODO(gri): Consider changing this to use the new (token) Position package. // TODO(gri): Consider changing this to use the new (token) Position package.

View File

@ -10,7 +10,7 @@ import (
"io" "io"
"strings" "strings"
"testing" "testing"
"utf8" "unicode/utf8"
) )
// A StringReader delivers its data one string segment at a time via Read. // A StringReader delivers its data one string segment at a time via Read.

View File

@ -14,7 +14,7 @@ import (
"bytes" "bytes"
"io" "io"
"os" "os"
"utf8" "unicode/utf8"
) )
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@ -10,7 +10,7 @@ import (
"reflect" "reflect"
"runtime" "runtime"
"strings" "strings"
"template/parse" "text/template/parse"
) )
// state represents the state of an execution. It's not part of the // state represents the state of an execution. It's not part of the

View File

@ -8,11 +8,11 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"io" "io"
"net/url"
"reflect" "reflect"
"strings" "strings"
"unicode" "unicode"
"url" "unicode/utf8"
"utf8"
) )
// FuncMap is the type of the map defining the mapping from names to functions. // FuncMap is the type of the map defining the mapping from names to functions.

View File

@ -6,7 +6,7 @@ package template
import ( import (
"reflect" "reflect"
"template/parse" "text/template/parse"
) )
// Template is the representation of a parsed template. // Template is the representation of a parsed template.

View File

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"unicode" "unicode"
"utf8" "unicode/utf8"
) )
// item represents a token or text string returned from the scanner. // item represents a token or text string returned from the scanner.

View File

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"io" "io"
"reflect" "reflect"
"template/parse" "text/template/parse"
) )
// Set holds a set of related templates that can refer to one another by name. // Set holds a set of related templates that can refer to one another by name.

View File

@ -11,9 +11,9 @@ import (
"bufio" "bufio"
"flag" "flag"
"fmt" "fmt"
"http"
"io" "io"
"log" "log"
"net/http"
"os" "os"
"path/filepath" "path/filepath"
"regexp" "regexp"

View File

@ -8,7 +8,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"unicode" "unicode"
. "utf16" . "unicode/utf16"
) )
type encodeTest struct { type encodeTest struct {

View File

@ -5,9 +5,9 @@
package utf8_test package utf8_test
import ( import (
"rand" "math/rand"
"testing" "testing"
. "utf8" . "unicode/utf8"
) )
func TestScanForwards(t *testing.T) { func TestScanForwards(t *testing.T) {

View File

@ -7,7 +7,7 @@ package utf8_test
import ( import (
"bytes" "bytes"
"testing" "testing"
. "utf8" . "unicode/utf8"
) )
type Utf8Map struct { type Utf8Map struct {

View File

@ -9,7 +9,7 @@ import (
"crypto/tls" "crypto/tls"
"io" "io"
"net" "net"
"url" "net/url"
) )
// DialError is an error that occurs while dialling a websocket server. // DialError is an error that occurs while dialling a websocket server.

View File

@ -13,13 +13,13 @@ import (
"crypto/md5" "crypto/md5"
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"http"
"io" "io"
"io/ioutil" "io/ioutil"
"rand" "math/rand"
"net/http"
"net/url"
"strconv" "strconv"
"strings" "strings"
"url"
) )
// An aray of characters to be randomly inserted to construct Sec-WebSocket-Key // An aray of characters to be randomly inserted to construct Sec-WebSocket-Key

View File

@ -8,11 +8,11 @@ import (
"bufio" "bufio"
"bytes" "bytes"
"fmt" "fmt"
"http"
"io" "io"
"net/http"
"net/url"
"strings" "strings"
"testing" "testing"
"url"
) )
// Test the getChallengeResponse function with values from section // Test the getChallengeResponse function with values from section

View File

@ -15,11 +15,11 @@ import (
"encoding/base64" "encoding/base64"
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"http"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http"
"net/url"
"strings" "strings"
"url"
) )
const ( const (

View File

@ -8,11 +8,11 @@ import (
"bufio" "bufio"
"bytes" "bytes"
"fmt" "fmt"
"http"
"io" "io"
"net/http"
"net/url"
"strings" "strings"
"testing" "testing"
"url"
) )
// Test the getNonceAccept function with values in // Test the getNonceAccept function with values in

View File

@ -7,8 +7,8 @@ package websocket
import ( import (
"bufio" "bufio"
"fmt" "fmt"
"http"
"io" "io"
"net/http"
) )
func newServerConn(rwc io.ReadWriteCloser, buf *bufio.ReadWriter, req *http.Request) (conn *Conn, err error) { func newServerConn(rwc io.ReadWriteCloser, buf *bufio.ReadWriter, req *http.Request) (conn *Conn, err error) {

View File

@ -9,14 +9,14 @@ package websocket
import ( import (
"bufio" "bufio"
"crypto/tls" "crypto/tls"
"http" "encoding/json"
"io" "io"
"io/ioutil" "io/ioutil"
"json"
"net" "net"
"net/http"
"net/url"
"os" "os"
"sync" "sync"
"url"
) )
const ( const (

View File

@ -7,15 +7,15 @@ package websocket
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"http"
"http/httptest"
"io" "io"
"log" "log"
"net" "net"
"net/http"
"net/http/httptest"
"net/url"
"strings" "strings"
"sync" "sync"
"testing" "testing"
"url"
) )
var serverAddr string var serverAddr string