Write is the entry point for serialization. This method orchestrates the complete serialization process, handling reference tracking, type information, and delegating to WriteData for the actual data serialization. Unlike Java's unified ref tracking approach, Go uses per-serializer ref/type handli
(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)
| 49 | // Errors are set on the context via ctx.SetError() and should be checked |
| 50 | // at appropriate boundaries using ctx.HasError() or ctx.CheckError(). |
| 51 | Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) |
| 52 | |
| 53 | // WriteData serializes using reflect.Value. |
| 54 | // Does NOT write ref/type info - caller handles that. |
no outgoing calls