Skip to content

Commit 381003b

Browse files
committed
all: gofmt -s
1 parent 253b866 commit 381003b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

field_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func TestField_Set(t *testing.T) {
135135

136136
func TestField_NotSettable(t *testing.T) {
137137
a := map[int]Baz{
138-
4: Baz{
138+
4: {
139139
A: "value",
140140
},
141141
}

structs_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func TestMap_NestedMapWithSliceIntValues(t *testing.T) {
380380

381381
b := &B{
382382
Foo: map[string][]int{
383-
"example_key": []int{80},
383+
"example_key": {80},
384384
},
385385
}
386386

@@ -418,7 +418,7 @@ func TestMap_NestedMapWithSliceStructValues(t *testing.T) {
418418

419419
b := &B{
420420
Foo: map[string][]address{
421-
"example_key": []address{
421+
"example_key": {
422422
{Country: "Turkey"},
423423
},
424424
},
@@ -463,8 +463,8 @@ func TestMap_NestedSliceWithStructValues(t *testing.T) {
463463
p := person{
464464
Name: "test",
465465
Addresses: []address{
466-
address{Country: "England"},
467-
address{Country: "Italy"},
466+
{Country: "England"},
467+
{Country: "Italy"},
468468
},
469469
}
470470
mp := Map(p)
@@ -492,8 +492,8 @@ func TestMap_NestedSliceWithPointerOfStructValues(t *testing.T) {
492492
p := person{
493493
Name: "test",
494494
Addresses: []*address{
495-
&address{Country: "England"},
496-
&address{Country: "Italy"},
495+
{Country: "England"},
496+
{Country: "Italy"},
497497
},
498498
}
499499
mp := Map(p)

0 commit comments

Comments
 (0)