Versions in this module Expand all Collapse all v0 v0.0.2 May 6, 2020 v0.0.1 Jan 23, 2020 Changes in this version + const ContentType + func Marshal(payload interface{}) ([]byte, error) + type Document struct + Data *documentData + Errors []*ErrorObject + Included []*ResourceObject + Meta json.RawMessage + func Unmarshal(data []byte, target interface{}) (*Document, error) + type ErrorObject struct + Code string + Source ErrorObjectSource + Title string + type ErrorObjectSource struct + Pointer string + type MarshalData interface + GetData func() interface{} + type MarshalErrors interface + GetErrors func() []*ErrorObject + type MarshalIncluded interface + GetIncluded func() []interface{} + type MarshalMeta interface + GetMeta func() interface{} + type MarshalRelationships interface + GetRelationships func() map[string]interface{} + type MarshalResourceIdentifier interface + GetID func() string + GetType func() string + type ResourceObject struct + Attributes json.RawMessage + Meta json.RawMessage + Relationships map[string]*relationship + type ResourceObjectIdentifier struct + ID string + Type string + func (roi ResourceObjectIdentifier) GetID() string + func (roi ResourceObjectIdentifier) GetType() string + type UnmarshalData interface + SetData func(func(interface{}) error) error + type UnmarshalErrors interface + SetErrors func(errors []*ErrorObject) error + type UnmarshalRelationships interface + SetRelationships func(map[string]interface{}) error + type UnmarshalResourceIdentifier interface + SetID func(string) error + SetType func(string) error