LaurenceLiZhixin opened a new issue #308:
URL: https://github.com/apache/dubbo-go-hessian2/issues/308
<!-- Please only use this template for submitting enhancement requests -->
**What would you like to be added**:
希望hessian库提供一个接口,可以将[]byte 转为map实现,并可以将map恢复为[]byte,例如
```go
type User struct{
}
type (u *User) JavaClassName() string{
return "org.apache.com.myUser"
}
enc := hessian.NewEncoder()
data1 := enc.Encode(&User{}) // encode to []byte
dec := hessian.NewDecoder(data)
myMap := dec.DecodeMap() // todo []byte to map[string]interface{}
date2 := enc.Encode(myMap, "org.apache.com.myUser") // data2 should be equal
to data1
```
**Why is this needed**:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]