code: func NewResource(p interface{}, selfUri string) *Resource {
  	var r Resource
  
  	r.Payload = p
  
  	r.Links = make(LinkRelations)
  	r.AddNewLink("self", selfUri)
  
  	r.Embedded = make(Embedded)
  	r.Curies = make(map[string]*CurieHandle)
  
  	return &r
  }
docs: // NewResource creates a Resource object for a given struct
  // and its link.