diff options
author | Russ Cox <rsc@golang.org> | 2009-04-16 20:52:37 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-04-16 20:52:37 -0700 |
commit | c93d66a312c9b1a271cf3a68c84c5e9f98cefd37 (patch) | |
tree | fc0d1bfb34a87c27e16c2bc4978b7cf4dd7b134e /src/lib/net | |
parent | 1a5a70789067ecf10d6a560c873c8a5552c6e82d (diff) | |
download | golang-c93d66a312c9b1a271cf3a68c84c5e9f98cefd37.tar.gz |
Convert go tree to hierarchical pkg directory:
import (
"vector" -> "container/vector"
"ast" -> "go/ast"
"sha1" -> "hash/sha1"
etc.
)
and update Makefiles. Because I did the conversion
semi-automatically, I sorted all the import blocks
as a post-processing. Some files have therefore
changed that didn't strictly need to.
Rename local packages to lower case.
The upper/lower distinction doesn't work on OS X
and complicates the "single-package directories
with the same package name as directory name"
heuristic used by gobuild and godoc to create
the correlation between source and binary locations.
Now that we have a plan to avoid globally unique
names, the upper/lower is unnecessary.
The renamings will cause trouble for a few users,
but so will the change in import paths.
This way, the two maintenance fixes are rolled into
one inconvenience.
R=r
OCL=27573
CL=27575
Diffstat (limited to 'src/lib/net')
-rw-r--r-- | src/lib/net/dialgoogle_test.go | 2 | ||||
-rw-r--r-- | src/lib/net/net.go | 2 | ||||
-rw-r--r-- | src/lib/net/net_darwin.go | 2 | ||||
-rw-r--r-- | src/lib/net/net_linux.go | 2 | ||||
-rw-r--r-- | src/lib/net/tcpserver_test.go | 2 | ||||
-rw-r--r-- | src/lib/net/timeout_test.go | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/net/dialgoogle_test.go b/src/lib/net/dialgoogle_test.go index 712a08600..f3fdb9a1d 100644 --- a/src/lib/net/dialgoogle_test.go +++ b/src/lib/net/dialgoogle_test.go @@ -5,10 +5,10 @@ package net import ( - "net"; "flag"; "fmt"; "io"; + "net"; "os"; "testing"; ) diff --git a/src/lib/net/net.go b/src/lib/net/net.go index e3e7baaa5..c63972a88 100644 --- a/src/lib/net/net.go +++ b/src/lib/net/net.go @@ -5,8 +5,8 @@ package net import ( - "os"; "net"; + "os"; "strconv"; "syscall"; ) diff --git a/src/lib/net/net_darwin.go b/src/lib/net/net_darwin.go index 9f137b736..78a705af9 100644 --- a/src/lib/net/net_darwin.go +++ b/src/lib/net/net_darwin.go @@ -5,9 +5,9 @@ package net import ( + "net"; "os"; "syscall"; - "net"; "unsafe"; ) diff --git a/src/lib/net/net_linux.go b/src/lib/net/net_linux.go index c9d4c803c..ddc13d347 100644 --- a/src/lib/net/net_linux.go +++ b/src/lib/net/net_linux.go @@ -5,9 +5,9 @@ package net import ( + "net"; "os"; "syscall"; - "net"; "unsafe"; ) diff --git a/src/lib/net/tcpserver_test.go b/src/lib/net/tcpserver_test.go index 11b13664b..45b15dab4 100644 --- a/src/lib/net/tcpserver_test.go +++ b/src/lib/net/tcpserver_test.go @@ -5,9 +5,9 @@ package net import ( - "os"; "io"; "net"; + "os"; "testing"; ) diff --git a/src/lib/net/timeout_test.go b/src/lib/net/timeout_test.go index d94b04940..8ad4f5427 100644 --- a/src/lib/net/timeout_test.go +++ b/src/lib/net/timeout_test.go @@ -6,9 +6,9 @@ package net import ( "net"; + "os"; "testing"; "time"; - "os"; ) func testTimeout(t *testing.T, network, addr string) { |