From 8f15aa6dff0d0a8066de220852aa4550b2468a78 Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Thu, 24 Sep 2020 16:57:25 -0400 Subject: [PATCH] gofmt -s --- fields/main_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fields/main_test.go b/fields/main_test.go index 8917520..fc4f2e9 100644 --- a/fields/main_test.go +++ b/fields/main_test.go @@ -76,7 +76,7 @@ func TestResourceTypes(t *testing.T) { "MAC": NewFieldInfo("MAC", "mac", "string", "^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$", true, false), "Number": NewFieldInfo("Number", "number", "int", "", true, false), "Boolean": NewFieldInfo("Boolean", "boolean", "bool", "", false, false), - "NestedType": &FieldInfo{ + "NestedType": { FieldName: "NestedType", JSONName: "nested_type", FieldType: "StructNestedType", @@ -87,7 +87,7 @@ func TestResourceTypes(t *testing.T) { "NestedFieldModified": NewFieldInfo("NestedFieldModified", "nested_field", "string", "^$", false, false), }, }, - "NestedTypeArray": &FieldInfo{ + "NestedTypeArray": { FieldName: "NestedTypeArray", JSONName: "nested_type_array", FieldType: "StructNestedTypeArray", @@ -101,7 +101,7 @@ func TestResourceTypes(t *testing.T) { } expectedStruct := map[string]*FieldInfo{ - "Struct": &FieldInfo{ + "Struct": { FieldName: "Struct", JSONName: "path", FieldType: "struct",