File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ func TestField_Set(t *testing.T) {
135
135
136
136
func TestField_NotSettable (t * testing.T ) {
137
137
a := map [int ]Baz {
138
- 4 : Baz {
138
+ 4 : {
139
139
A : "value" ,
140
140
},
141
141
}
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ func TestMap_NestedMapWithSliceIntValues(t *testing.T) {
380
380
381
381
b := & B {
382
382
Foo : map [string ][]int {
383
- "example_key" : [] int {80 },
383
+ "example_key" : {80 },
384
384
},
385
385
}
386
386
@@ -418,7 +418,7 @@ func TestMap_NestedMapWithSliceStructValues(t *testing.T) {
418
418
419
419
b := & B {
420
420
Foo : map [string ][]address {
421
- "example_key" : [] address {
421
+ "example_key" : {
422
422
{Country : "Turkey" },
423
423
},
424
424
},
@@ -463,8 +463,8 @@ func TestMap_NestedSliceWithStructValues(t *testing.T) {
463
463
p := person {
464
464
Name : "test" ,
465
465
Addresses : []address {
466
- address {Country : "England" },
467
- address {Country : "Italy" },
466
+ {Country : "England" },
467
+ {Country : "Italy" },
468
468
},
469
469
}
470
470
mp := Map (p )
@@ -492,8 +492,8 @@ func TestMap_NestedSliceWithPointerOfStructValues(t *testing.T) {
492
492
p := person {
493
493
Name : "test" ,
494
494
Addresses : []* address {
495
- & address {Country : "England" },
496
- & address {Country : "Italy" },
495
+ {Country : "England" },
496
+ {Country : "Italy" },
497
497
},
498
498
}
499
499
mp := Map (p )
You can’t perform that action at this time.
0 commit comments