fix repeated text unmarshal bug

This commit is contained in:
Alex Flint 2018-04-18 21:51:16 -07:00
parent 74dd5a2c5a
commit b9375a2e66
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}