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

Function interfaceEncoder

jsonxt/encode.go:616–622  ·  view source on GitHub ↗
(e *encodeState, v reflect.Value, opts encOpts)

Source from the content-addressed store, hash-verified

614}
615
616func interfaceEncoder(e *encodeState, v reflect.Value, opts encOpts) {
617 if v.IsNil() {
618 e.WriteString("null")
619 return
620 }
621 e.reflectValue(v.Elem(), opts)
622}
623
624func unsupportedTypeEncoder(e *encodeState, v reflect.Value, _ encOpts) {
625 e.error(&UnsupportedTypeError{v.Type()})

Callers

nothing calls this directly

Calls 1

reflectValueMethod · 0.80

Tested by

no test coverage detected