(t reflect.Type, seen map[reflect.Type]*structType, canAddr bool)
| 467 | } |
| 468 | |
| 469 | func 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 | |
| 477 | func constructStructType(t reflect.Type, seen map[reflect.Type]*structType, canAddr bool) *structType { |
| 478 | // Used for preventing infinite recursion on types that have pointers to |
no test coverage detected
searching dependent graphs…