MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / SequenceToStrings

Function SequenceToStrings

internal/node/node.go:425–434  ·  view source on GitHub ↗

SequenceToStrings converts a sequence of Scalars to a string slice

(n *yaml.Node)

Source from the content-addressed store, hash-verified

423
424// SequenceToStrings converts a sequence of Scalars to a string slice
425func SequenceToStrings(n *yaml.Node) []string {
426 if n == nil || n.Content == nil {
427 return []string{}
428 }
429 ss := []string{}
430 for _, v := range n.Content {
431 ss = append(ss, v.Value)
432 }
433 return ss
434}
435
436// DecodeMap converts a node to a string map
437func DecodeMap(n *yaml.Node) map[string]any {

Callers 4

FnJoinFunction · 0.92
OutputGetAttMethod · 0.92
OutputSubMethod · 0.92
ResolveSubMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected