Documentation
¶
Overview ¶
Package body parses and composes the request body for write operations.
Two baseline sources (mutually exclusive), then field-flag overlay:
- --file <path> baseline JSON read from a file ("-" = stdin)
- --json <inline> baseline JSON given inline on the command line
- --<field> / --<a>.<b> structured field flags overlay on top of the baseline
The result is a Go value ready to hand off to the HTTP client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compose ¶
Compose merges baseline (from --file/--json) with structured field flags. Field flag values override baseline fields at matching dot-paths. Field values are JSON-parsed when possible (numbers, booleans, arrays, objects) so callers can pass typed scalars; otherwise the value is treated as a string.
Returns nil when the resulting body is empty (no baseline, no flags).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.