Documentation
¶
Index ¶
- func CloneParams(params map[string]interface{}) map[string]interface{}
- func ConvertLegacyOutputsToTyped[T any](outputs map[string]any) (T, error)
- func ConvertTypedInputsToLegacy(inputs any) (map[string]any, error)
- func Max(a, b int) int
- func ParseJSONResponse(response string) (map[string]interface{}, error)
- func PopulateStructFromMap(structValue reflect.Value, structType reflect.Type, data map[string]any) error
- func SetFieldValue(fieldValue reflect.Value, value any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneParams ¶ added in v0.28.0
CloneParams creates a deep copy of a parameter map.
func ConvertLegacyOutputsToTyped ¶ added in v0.52.0
ConvertLegacyOutputsToTyped converts map[string]any to a typed struct.
func ConvertTypedInputsToLegacy ¶ added in v0.52.0
ConvertTypedInputsToLegacy converts a typed struct to map[string]any.
func ParseJSONResponse ¶
ParseJSONResponse attempts to parse a string response as JSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.