Documentation
¶
Overview ¶
Package statejson preserves foreign workflow keys while replacing owned state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceOwned ¶
func ReplaceOwned(existing map[string]json.RawMessage, state any) (map[string]json.RawMessage, error)
ReplaceOwned replaces all JSON fields owned by a flat, explicitly tagged struct, including fields omitted by omitempty or omitzero. Other root keys are preserved. Nested objects are replaced whole, not recursively merged. The input map is modified only after serialization and ownership validation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.