MCPcopy Create free account
hub / github.com/blues/note / Marshaler

Interface Marshaler

jsonxt/encode.go:224–226  ·  view source on GitHub ↗

Marshaler is the interface implemented by types that can marshal themselves into valid JSON.

Source from the content-addressed store, hash-verified

222// Marshaler is the interface implemented by types that
223// can marshal themselves into valid JSON.
224type Marshaler interface {
225 MarshalJSON() ([]byte, error)
226}
227
228// An UnsupportedTypeError is returned by Marshal when attempting
229// to encode an unsupported value type.

Callers 2

marshalerEncoderFunction · 0.65
addrMarshalerEncoderFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected