MCPcopy Create free account
hub / github.com/go-json-experiment/json / MarshalToFunc

Function MarshalToFunc

alias.go:606–608  ·  view source on GitHub ↗

MarshalToFunc constructs a type-specific marshaler that specifies how to marshal values of type T. T can be any type except a named pointer. The function is always provided with a non-nil pointer value if T is an interface or pointer type. The function must marshal exactly one JSON value by calling

(fn func(*jsontext.Encoder, T) error)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestMarshalFunction · 0.70
arshal_test.goFile · 0.70

Calls

no outgoing calls

Tested by 1

TestMarshalFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…