sliceDynSerializer provides the dynamic slice implementation that inspects element values at runtime. This serializer is designed for slices with any interface element type (e.g., []any, []io.Reader, []fmt.Stringer, or pointers to interfaces). For slices with concrete element types, use sliceSeriali
| 28 | // (e.g., []any, []io.Reader, []fmt.Stringer, or pointers to interfaces). |
| 29 | // For slices with concrete element types, use sliceSerializer instead. |
| 30 | type sliceDynSerializer struct { |
| 31 | elemType reflect.Type |
| 32 | isInterfaceElem bool |
| 33 | isPointerElem bool |
| 34 | } |
| 35 | |
| 36 | // newSliceDynSerializer creates a new sliceDynSerializer. |
| 37 | // This serializer is ONLY for slices with interface or pointer to interface element types. |
nothing calls this directly
no outgoing calls
no test coverage detected