Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNestedKey ¶
GetNestedKey retrieves a value from a nested map using a dot-separated path. Returns the value and a boolean indicating whether it was found. e.g. GetNestedKey(m, "userform.applicant_name") returns (m["userform"]["applicant_name"], true)
func SetNestedKey ¶
SetNestedKey sets a value in a map using a dot-separated path. e.g. SetNestedKey(m, "userform.applicant_name", "Acme") sets m["userform"]["applicant_name"] = "Acme" If the target key and the incoming value are both map[string]any, they are recursively merged. Assigned values (like nested maps/slices) are deep-copied.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.