Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleUnmappedDataPropertyMarshalling ¶
HandleUnmappedDataPropertyMarshalling expects the bytes of a marshalled struct. If the marshalled struct contains 'unmapped' fields meaning ones that had no corresponding, strong-typed field when initially unmarshalled, those fields will be extracted again. The extracted field from the maps containing the unmapped data will be placed on the top level of the marshalled struct.
func UnmarshallWithUnmappedData ¶
func UnmarshallWithUnmappedData[T any](targetStruct *T, unmappedDataInTargetStruct *ExtensionData, bytes []byte) (err error)
UnmarshallWithUnmappedData will unmarshal a given type by mapping all strong-typed fields to the 'targetStruct'. All other fields will be preserved in the 'unmappedDataInTargetStruct' dictionary.
Types ¶
type ExtensionData ¶
func (ExtensionData) CompareTo ¶
func (ed ExtensionData) CompareTo(otherEd ExtensionData) bool
Click to show internal directories.
Click to hide internal directories.