diff options
| author | Alex Flint <[email protected]> | 2018-04-18 21:51:16 -0700 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2018-04-18 21:51:16 -0700 |
| commit | b9375a2e66525c12064e8bcd3b2ff68711182ecc (patch) | |
| tree | ce21e3601e010fdec454aae5495a7c7538633094 /parse.go | |
| parent | 74dd5a2c5adaae3e3e12734219ed5e1ab2450447 (diff) | |
fix repeated text unmarshal bug
Diffstat (limited to 'parse.go')
| -rw-r--r-- | parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() } |
