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 not stored for this graph (policy: none)
no outgoing calls
searching dependent graphs…