func NewLinkObject(href string) (*LinkObject, error) {
	if href == "" {
		return nil, errors.New("LinkObject requires a href value")
	}
	return &LinkObject{Href: href}, nil
}
NewLinkObject initializes a LinkObject with it's required href value.
package hal
import "errors"
type LinkObject struct {
	Href        string `json:"href"`                   
	Templated   bool   `json:"templated,omitempty"`    
	Type        string `json:"type,omitempty"`         
	Deprecation string `json:"deprecation,omitempty"`  
	Name        string `json:"name,omitempty"`         
	Profile     string `json:"profile,omitempty"`      
	Title       string `json:"title,omitempty"`        
	HrefLang    string `json:"hreflang,omitempty"`     
}