1
0
mirror of https://github.com/golang/go synced 2024-11-24 08:20:03 -07:00

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/13837
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Didier Spezia 2015-08-23 13:00:01 +00:00 committed by Ian Lance Taylor
parent 41713b4d2b
commit f4f0344fe2
2 changed files with 6 additions and 6 deletions

View File

@ -80,11 +80,11 @@ type encodingTest struct {
}
var encodingTests = []encodingTest{
encodingTest{StdEncoding, stdRef},
encodingTest{URLEncoding, urlRef},
encodingTest{RawStdEncoding, rawRef},
encodingTest{RawURLEncoding, rawUrlRef},
encodingTest{funnyEncoding, funnyRef},
{StdEncoding, stdRef},
{URLEncoding, urlRef},
{RawStdEncoding, rawRef},
{RawURLEncoding, rawUrlRef},
{funnyEncoding, funnyRef},
}
var bigtest = testpair{

View File

@ -1695,7 +1695,7 @@ func TestRace9796(t *testing.T) {
for i := 0; i < 2; i++ {
wg.Add(1)
go func() {
Marshal(B{[]A{A{}}})
Marshal(B{[]A{{}}})
wg.Done()
}()
}