mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
convert non-low-level non-google pkg code
to whole-package compilation. R=r OCL=33070 CL=33101
This commit is contained in:
parent
5b62b19d43
commit
b04ac108fd
166 changed files with 305 additions and 2917 deletions
|
|
@ -6,7 +6,6 @@ package net
|
|||
|
||||
import (
|
||||
"io";
|
||||
"net";
|
||||
"os";
|
||||
"strings";
|
||||
"syscall";
|
||||
|
|
@ -27,7 +26,7 @@ func runEcho(fd io.ReadWriter, done chan<- int) {
|
|||
}
|
||||
|
||||
func runServe(t *testing.T, network, addr string, listening chan<- string, done chan<- int) {
|
||||
l, err := net.Listen(network, addr);
|
||||
l, err := Listen(network, addr);
|
||||
if err != nil {
|
||||
t.Fatalf("net.Listen(%q, %q) = _, %v", network, addr, err);
|
||||
}
|
||||
|
|
@ -47,7 +46,7 @@ func runServe(t *testing.T, network, addr string, listening chan<- string, done
|
|||
}
|
||||
|
||||
func connect(t *testing.T, network, addr string) {
|
||||
fd, err := net.Dial(network, "", addr);
|
||||
fd, err := Dial(network, "", addr);
|
||||
if err != nil {
|
||||
t.Fatalf("net.Dial(%q, %q, %q) = _, %v", network, "", addr, err);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue