func NewResourceFactory(curieLinks []*LinkObject) ResourceFactory {
	links := make(map[string]*LinkObject)
	for _, link := range curieLinks {
		links[link.Name] = link
	}
	factory := &resourceFactory{curieLinks: links}
	return factory
}
NewResourceFactory initialises a ResourceFactory with a set of CURIE links.
package hal
type ResourceFactory interface {
	CreateRootResource(href string) Resource
	CreateEmbeddedResource(href string) Resource
	CreateLink(relationName string, href string, curieLinkName string) LinkRelation
	CreateResourceLink(relationName string, curieLinkName string) ResourceRelation
}
type resourceFactory struct {
	curieLinks map[string]*LinkObject
}