aboutsummaryrefslogtreecommitdiff
path: root/src/pkg
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2010-12-11 13:49:45 -0800
committerRobert Griesemer <gri@golang.org>2010-12-11 13:49:45 -0800
commit7ec69c179d0cef01075b84a0fa3c0a4e927bbc63 (patch)
tree82b0044d06ed708ebf3f78ffaedcb400ff42e24d /src/pkg
parent055650daa413b7a03fed224d08acc94186cb4d01 (diff)
downloadgo-7ec69c179d0cef01075b84a0fa3c0a4e927bbc63.tar.xz
gofmt -s -w src
R=golang-dev, gri CC=golang-dev https://golang.org/cl/3592041
Diffstat (limited to 'src/pkg')
-rw-r--r--src/pkg/debug/pe/file_test.go4
-rw-r--r--src/pkg/net/dnsname_test.go18
-rw-r--r--src/pkg/os/inotify/inotify_linux.go2
3 files changed, 12 insertions, 12 deletions
diff --git a/src/pkg/debug/pe/file_test.go b/src/pkg/debug/pe/file_test.go
index c000c5fc84..2c5c25b8c4 100644
--- a/src/pkg/debug/pe/file_test.go
+++ b/src/pkg/debug/pe/file_test.go
@@ -16,7 +16,7 @@ type fileTest struct {
}
var fileTests = []fileTest{
- fileTest{
+ {
"testdata/gcc-386-mingw-obj",
FileHeader{0x014c, 0x000c, 0x0, 0x64a, 0x1e, 0x0, 0x104},
[]*SectionHeader{
@@ -34,7 +34,7 @@ var fileTests = []fileTest{
&SectionHeader{".debug_aranges", 0, 0, 32, 1408, 1590, 0, 2, 0, 1108344832},
},
},
- fileTest{
+ {
"testdata/gcc-386-mingw-exec",
FileHeader{0x014c, 0x000f, 0x4c6a1b60, 0x3c00, 0x282, 0xe0, 0x107},
[]*SectionHeader{
diff --git a/src/pkg/net/dnsname_test.go b/src/pkg/net/dnsname_test.go
index fd65dcb172..f4089c5db8 100644
--- a/src/pkg/net/dnsname_test.go
+++ b/src/pkg/net/dnsname_test.go
@@ -16,15 +16,15 @@ type testCase struct {
var tests = []testCase{
// RFC2181, section 11.
- testCase{"_xmpp-server._tcp.google.com", true},
- testCase{"_xmpp-server._tcp.google.com", true},
- testCase{"foo.com", true},
- testCase{"1foo.com", true},
- testCase{"26.0.0.73.com", true},
- testCase{"fo-o.com", true},
- testCase{"fo1o.com", true},
- testCase{"foo1.com", true},
- testCase{"a.b..com", false},
+ {"_xmpp-server._tcp.google.com", true},
+ {"_xmpp-server._tcp.google.com", true},
+ {"foo.com", true},
+ {"1foo.com", true},
+ {"26.0.0.73.com", true},
+ {"fo-o.com", true},
+ {"fo1o.com", true},
+ {"foo1.com", true},
+ {"a.b..com", false},
}
func getTestCases(ch chan<- *testCase) {
diff --git a/src/pkg/os/inotify/inotify_linux.go b/src/pkg/os/inotify/inotify_linux.go
index 2362c90caf..1e74c7fbc5 100644
--- a/src/pkg/os/inotify/inotify_linux.go
+++ b/src/pkg/os/inotify/inotify_linux.go
@@ -88,7 +88,7 @@ func (w *Watcher) Close() os.Error {
// Send "quit" message to the reader goroutine
w.done <- true
- for path, _ := range w.watches {
+ for path := range w.watches {
w.RemoveWatch(path)
}