1
0
mirror of https://github.com/golang/go synced 2024-11-24 18:10:02 -07:00

gofmt -s -w src

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/3592041
This commit is contained in:
Mikio Hara 2010-12-11 13:49:45 -08:00 committed by Robert Griesemer
parent 055650daa4
commit 7ec69c179d
3 changed files with 12 additions and 12 deletions

View File

@ -16,7 +16,7 @@ type fileTest struct {
} }
var fileTests = []fileTest{ var fileTests = []fileTest{
fileTest{ {
"testdata/gcc-386-mingw-obj", "testdata/gcc-386-mingw-obj",
FileHeader{0x014c, 0x000c, 0x0, 0x64a, 0x1e, 0x0, 0x104}, FileHeader{0x014c, 0x000c, 0x0, 0x64a, 0x1e, 0x0, 0x104},
[]*SectionHeader{ []*SectionHeader{
@ -34,7 +34,7 @@ var fileTests = []fileTest{
&SectionHeader{".debug_aranges", 0, 0, 32, 1408, 1590, 0, 2, 0, 1108344832}, &SectionHeader{".debug_aranges", 0, 0, 32, 1408, 1590, 0, 2, 0, 1108344832},
}, },
}, },
fileTest{ {
"testdata/gcc-386-mingw-exec", "testdata/gcc-386-mingw-exec",
FileHeader{0x014c, 0x000f, 0x4c6a1b60, 0x3c00, 0x282, 0xe0, 0x107}, FileHeader{0x014c, 0x000f, 0x4c6a1b60, 0x3c00, 0x282, 0xe0, 0x107},
[]*SectionHeader{ []*SectionHeader{

View File

@ -16,15 +16,15 @@ type testCase struct {
var tests = []testCase{ var tests = []testCase{
// RFC2181, section 11. // RFC2181, section 11.
testCase{"_xmpp-server._tcp.google.com", true}, {"_xmpp-server._tcp.google.com", true},
testCase{"_xmpp-server._tcp.google.com", true}, {"_xmpp-server._tcp.google.com", true},
testCase{"foo.com", true}, {"foo.com", true},
testCase{"1foo.com", true}, {"1foo.com", true},
testCase{"26.0.0.73.com", true}, {"26.0.0.73.com", true},
testCase{"fo-o.com", true}, {"fo-o.com", true},
testCase{"fo1o.com", true}, {"fo1o.com", true},
testCase{"foo1.com", true}, {"foo1.com", true},
testCase{"a.b..com", false}, {"a.b..com", false},
} }
func getTestCases(ch chan<- *testCase) { func getTestCases(ch chan<- *testCase) {

View File

@ -88,7 +88,7 @@ func (w *Watcher) Close() os.Error {
// Send "quit" message to the reader goroutine // Send "quit" message to the reader goroutine
w.done <- true w.done <- true
for path, _ := range w.watches { for path := range w.watches {
w.RemoveWatch(path) w.RemoveWatch(path)
} }