Help us shape the future of Go! Take the 2026 Go Developer Survey

statejson

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL