From b9375a2e66525c12064e8bcd3b2ff68711182ecc Mon Sep 17 00:00:00 2001 From: Alex Flint Date: Wed, 18 Apr 2018 21:51:16 -0700 Subject: [PATCH] fix repeated text unmarshal bug --- parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.go b/parse.go index 80f013c..1416223 100644 --- a/parse.go +++ b/parse.go @@ -426,7 +426,7 @@ func setSlice(dest reflect.Value, values []string, trunc bool) error { var ptr bool elem := dest.Type().Elem() - if elem.Kind() == reflect.Ptr { + if elem.Kind() == reflect.Ptr && !elem.Implements(textUnmarshalerType) { ptr = true elem = elem.Elem() }