MarshalMeta includes the given meta (must be a map or struct) as Document.Meta when marshaling.
(meta any)
| 37 | |
| 38 | // MarshalMeta includes the given meta (must be a map or struct) as Document.Meta when marshaling. |
| 39 | func MarshalMeta(meta any) MarshalOption { |
| 40 | return func(m *Marshaler) { |
| 41 | m.meta = meta |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // MarshalJSONAPI includes the given meta (must be a map or struct) as Document.JSONAPI.Meta when marshaling. |
| 46 | // This also enables writing Document.JSONAPI.Version. |
no outgoing calls