MCPcopy Index your code
hub / github.com/segmentio/encoding / constructStructCodec

Function constructStructCodec

json/codec.go:469–475  ·  view source on GitHub ↗
(t reflect.Type, seen map[reflect.Type]*structType, canAddr bool)

Source from the content-addressed store, hash-verified

467}
468
469func constructStructCodec(t reflect.Type, seen map[reflect.Type]*structType, canAddr bool) codec {
470 st := constructStructType(t, seen, canAddr)
471 return codec{
472 encode: constructStructEncodeFunc(st),
473 decode: constructStructDecodeFunc(st),
474 }
475}
476
477func constructStructType(t reflect.Type, seen map[reflect.Type]*structType, canAddr bool) *structType {
478 // Used for preventing infinite recursion on types that have pointers to

Callers 1

constructCodecFunction · 0.85

Calls 3

constructStructTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…