From 381003bded16eb98f2025f39eefaff7dd5d7b78f Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Sun, 21 Jan 2018 20:36:56 +0100 Subject: [PATCH] all: gofmt -s --- field_test.go | 2 +- structs_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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)