From: ia Date: Sat, 16 Jun 2018 22:47:12 +0000 (+0200) Subject: all: gofmt X-Git-Tag: v1.0.0~130 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=fd7b23e5275d5c60d5487be7ef0aee36d2d812ca;p=btrtrc.git all: gofmt Run standard gofmt command on project root. - go version go1.10.3 darwin/amd64 Signed-off-by: ia --- diff --git a/bencode/decode.go b/bencode/decode.go index 2905aec9..43f3b0e3 100644 --- a/bencode/decode.go +++ b/bencode/decode.go @@ -226,9 +226,9 @@ func getDictField(dict reflect.Value, key string) dictField { }) } return dictField{ - Value: dict.FieldByIndex(sf.Index), - Ok: true, - Set: func() {}, + Value: dict.FieldByIndex(sf.Index), + Ok: true, + Set: func() {}, IgnoreUnmarshalTypeError: getTag(sf.Tag).IgnoreUnmarshalTypeError(), } default: