diff --git a/field_test.go b/field_test.go index de9dc3b..ed14dcc 100644 --- a/field_test.go +++ b/field_test.go @@ -135,7 +135,7 @@ func TestField_Set(t *testing.T) { func TestField_NotSettable(t *testing.T) { a := map[int]Baz{ - 4: Baz{ + 4: { A: "value", }, } diff --git a/structs_test.go b/structs_test.go index 96a5284..3e15833 100644 --- a/structs_test.go +++ b/structs_test.go @@ -380,7 +380,7 @@ func TestMap_NestedMapWithSliceIntValues(t *testing.T) { b := &B{ Foo: map[string][]int{ - "example_key": []int{80}, + "example_key": {80}, }, } @@ -418,7 +418,7 @@ func TestMap_NestedMapWithSliceStructValues(t *testing.T) { b := &B{ Foo: map[string][]address{ - "example_key": []address{ + "example_key": { {Country: "Turkey"}, }, }, @@ -463,8 +463,8 @@ func TestMap_NestedSliceWithStructValues(t *testing.T) { p := person{ Name: "test", Addresses: []address{ - address{Country: "England"}, - address{Country: "Italy"}, + {Country: "England"}, + {Country: "Italy"}, }, } mp := Map(p) @@ -492,8 +492,8 @@ func TestMap_NestedSliceWithPointerOfStructValues(t *testing.T) { p := person{ Name: "test", Addresses: []*address{ - &address{Country: "England"}, - &address{Country: "Italy"}, + {Country: "England"}, + {Country: "Italy"}, }, } mp := Map(p)