Skip to main content

MakeLiteralForMap

No overview available.

def MakeLiteralForMap(
v: map[string]interface{}
) - > *core.Literal, error

Converts a Go map into a Flyte core.Literal representing a map. This function is used to create literal map values that can be used within Flyte workflows.

Parameters

NameTypeDescription
vmap[string]interface{}The Go map to be converted into a Flyte core.Literal map. The keys are strings and values can be of any type that can be represented as a Flyte literal.

Returns

TypeDescription
*core.Literal, errorA pointer to a core.Literal representing the input map, or an error if the conversion fails.