Skip to content
Permalink
Browse files
fixed: #282
  • Loading branch information
Changeden committed Oct 11, 2021
1 parent 3fa24f7 commit 9721399607cbe55e36c236e8dbf92af7eec3e01b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -164,7 +164,7 @@ func (e *Encoder) Encode(v interface{}) error {
t := UnpackPtrType(reflect.TypeOf(v))

if DecodeTypeRegexp.Match([]byte(t.String())) { // unpack base type
return e.Encode(v)
return e.Encode(reflect.ValueOf(v).Elem().Interface())
}

switch t.Kind() {

0 comments on commit 9721399

Please sign in to comment.