Versions in this module Expand all Collapse all v1 v1.0.2 Aug 27, 2019 v1.0.1 Apr 28, 2019 Changes in this version + const DEPRECATION + const HREF + const HREFLANG + const NAME + const PROFILE + const TEMPLATED + const TITLE + const TYPE + var ErrNoCurie = errors.New("Must add curie before adding a curied link") + type Curie struct + Href string + Name string + Templated bool + type Embeds struct + Relations map[string][]Resource + func NewEmbeds() *Embeds + func (e *Embeds) MarshalJSON() ([]byte, error) + func (e *Embeds) UnmarshalJSON(b []byte) error + type Link struct + Deprecation *string + Href string + HrefLang *string + Profile *string + Templated bool + Title *string + Type *string + type Links struct + Curies *[]Curie + Relations map[string][]*Link + Self *Link + func NewLinks() *Links + func (l *Links) AddCurie(curie *Curie) error + func (l *Links) AddLink(reltype string, link *Link) error + func (l *Links) MarshalJSON() ([]byte, error) + func (l *Links) UnmarshalJSON(b []byte) error + type Resource struct + Data map[string]interface{} + Embeds *Embeds + Links *Links + func NewResource() *Resource + func (r *Resource) AddCurie(curie *Curie) error + func (r *Resource) AddEmbed(reltype string, embed *Resource) error + func (r *Resource) AddLink(reltype string, link *Link) error + func (r *Resource) MarshalJSON() ([]byte, error) + func (r *Resource) Self(uri string) + func (r *Resource) UnmarshalJSON(b []byte) error Other modules containing this package github.com/mattgen88/haljson/v2 github.com/mattgen88/haljson/v3