Re: [go-nuts] Help- Empty request header and body

2019-02-11 Thread afriyie . abraham
Hi, Please attacted is app files (unnecessary codes deleted). I don’t if I could made mode simpler but this is how am able let you identify the problem am encountering when I run this code. I tried to print the request header and body and this is what am getting ] &{{ObjectIdHex("") 0 0 []

Re: [go-nuts] Help- Empty request header and body

2019-02-11 Thread Lutz Horn
Am new in golang and am trying to write an API but my request header and body is always empty. Well, that's a *lot* of code. Please trim it so it forms a SSCCE (http://www.sscce.org/). Lutz -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] Help- Empty request header and body

2019-02-09 Thread afriyie . abraham
Hi, Am new in golang and am trying to write an API but my request header and body is always empty. I need help on how to solve this Please. Thanks in advance. // Model type NfInstance struct { Id bson.ObjectId `json:"nfInstanceID" bson:"_id,omitempty"` //`json:"nfinstanceI