Currently this is the method I use to convert map[string]interface{} to Message struct
byteBlob, err := json.Marshal(messageMap)
if err != nil {
return nil, err
}
message := &Message{}
err = json.Unmarshal(byteBlob, message)
if err != nil {
return nil, err
}
I found json package to hack my way through this, but what is the right way to do this conversion? obviously without using json package