Skip to main content

Values

No overview available.

def Values(
ctx: context.Context,
keys: ...Key
) - > map[string]string

Retrieves a map of string values for the given keys, applying default values if necessary. This function is used to collect and standardize configuration or context-specific string data.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, used to carry deadlines, cancellation signals, and other request-scoped values across API boundaries.
keys...KeyA variadic list of Key types for which to retrieve string values. Each key will be processed to get its string representation, potentially using default values.

Returns

TypeDescription
map[string]stringA map where keys are the provided Key values (converted to strings) and values are their corresponding string representations, potentially with defaults applied.