How to retrieve headers data value from client API using Go language?
I'm using beego framework (beego.me)
and here is sample result to retrieve data from body
func (u *UserController) Post() {
var user models.User
json.Unmarshal(u.Ctx.Input.RequestBody, &user)
uid := models.AddUser(user)
u.Data["json"] = map[string]string{"uid": uid}
u.ServeJSON()
}