MarshalSpec materializes a value via Context.Marshal.
| 28 | |
| 29 | // MarshalSpec materializes a value via Context.Marshal. |
| 30 | type MarshalSpec struct { |
| 31 | Value interface{} |
| 32 | } |
| 33 | |
| 34 | func (s MarshalSpec) Materialize(ctx *Context) (*Value, error) { |
| 35 | return ctx.Marshal(s.Value) |
nothing calls this directly
no outgoing calls
no test coverage detected