Merge pull request #103 from ferhatelmas/gofmt-simplify

all: gofmt -s
This commit is contained in:
Fatih Arslan 2018-01-22 13:23:58 +03:00 committed by GitHub
commit 81b59bf1b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -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",
},
}

View File

@ -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)