MCPcopy Create free account
hub / github.com/buke/quickjs-go / MarshalSpec

Struct MarshalSpec

value_spec.go:30–32  ·  view source on GitHub ↗

MarshalSpec materializes a value via Context.Marshal.

Source from the content-addressed store, hash-verified

28
29// MarshalSpec materializes a value via Context.Marshal.
30type MarshalSpec struct {
31 Value interface{}
32}
33
34func (s MarshalSpec) Materialize(ctx *Context) (*Value, error) {
35 return ctx.Marshal(s.Value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected