Commit f4f0344f authored by Didier Spezia's avatar Didier Spezia Committed by Ian Lance Taylor

encoding/base64,xml: map/slice literals janitoring

Simplify slice/map literal expressions.
Caught with gofmt -d -s, fixed with gofmt -w -s

Change-Id: I639cfb02b1f57dea4087863df3995889c9371529
Reviewed-on: https://go-review.googlesource.com/13837Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
parent 41713b4d
...@@ -80,11 +80,11 @@ type encodingTest struct { ...@@ -80,11 +80,11 @@ type encodingTest struct {
} }
var encodingTests = []encodingTest{ var encodingTests = []encodingTest{
encodingTest{StdEncoding, stdRef}, {StdEncoding, stdRef},
encodingTest{URLEncoding, urlRef}, {URLEncoding, urlRef},
encodingTest{RawStdEncoding, rawRef}, {RawStdEncoding, rawRef},
encodingTest{RawURLEncoding, rawUrlRef}, {RawURLEncoding, rawUrlRef},
encodingTest{funnyEncoding, funnyRef}, {funnyEncoding, funnyRef},
} }
var bigtest = testpair{ var bigtest = testpair{
......
...@@ -1695,7 +1695,7 @@ func TestRace9796(t *testing.T) { ...@@ -1695,7 +1695,7 @@ func TestRace9796(t *testing.T) {
for i := 0; i < 2; i++ { for i := 0; i < 2; i++ {
wg.Add(1) wg.Add(1)
go func() { go func() {
Marshal(B{[]A{A{}}}) Marshal(B{[]A{{}}})
wg.Done() wg.Done()
}() }()
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment