From 5a54efdd490d93865fe365db4bbec822543280d9 Mon Sep 17 00:00:00 2001 From: Yang Fang Date: Wed, 9 Aug 2023 14:02:09 +0800 Subject: [PATCH] style: format copier_file_name_mapping_test.go --- copier_field_name_mapping_test.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/copier_field_name_mapping_test.go b/copier_field_name_mapping_test.go index 755cf0d..516f8dd 100644 --- a/copier_field_name_mapping_test.go +++ b/copier_field_name_mapping_test.go @@ -21,10 +21,13 @@ func TestCustomFieldName(t *testing.T) { u1 := User1{Id: 1, Name: "1", Address: []string{"1"}} var u2 User2 - err := copier.CopyWithOption(&u2, u1, - copier.Option{FieldNameMapping: []copier.FieldNameMapping{ - {SrcType: u1, DstType: u2, Mapping: map[string]string{"Id": "Id2", "Name": "Name2", "Address": "Address2"}}, - }}) + err := copier.CopyWithOption(&u2, u1, copier.Option{FieldNameMapping: []copier.FieldNameMapping{ + {SrcType: u1, DstType: u2, + Mapping: map[string]string{ + "Id": "Id2", + "Name": "Name2", + "Address": "Address2"}}, + }}) if err != nil { t.Fatal(err)