I am reading json from Raabbitmq in golang and mapping the json in an interface
My struct looks like this, and
type Documents struct {
user_id string
partner_id []string
last_login int
}
and I am mapping the incoming json in the above struct, but for debugginf purpose, i want to see the interface array , how can i print the mapped data array (body in my case )
var body []Documents
json.Unmarshal(d.Body, &body)
log.Printf("Received a message: %s", body)
Do i need to put other identifier instead of %s ?