MCPcopy
hub / github.com/homeport/dyff / AsSequenceNode

Function AsSequenceNode

pkg/dyff/core.go:792–806  ·  view source on GitHub ↗

AsSequenceNode translates a string list into a SequenceNode

(list ...string)

Source from the content-addressed store, hash-verified

790
791// AsSequenceNode translates a string list into a SequenceNode
792func AsSequenceNode(list ...string) *yamlv3.Node {
793 result := make([]*yamlv3.Node, len(list))
794 for i, entry := range list {
795 result[i] = &yamlv3.Node{
796 Kind: yamlv3.ScalarNode,
797 Tag: "!!str",
798 Value: entry,
799 }
800 }
801
802 return &yamlv3.Node{
803 Kind: yamlv3.SequenceNode,
804 Content: result,
805 }
806}
807
808func findOrderChangesInNamedEntryLists(fromNames, toNames []string) []Detail {
809 orderchanges := make([]Detail, 0)

Callers 4

compare_test.goFile · 0.92
nodifyFunction · 0.92
documentNodesMethod · 0.85

Calls

no outgoing calls

Tested by 1

nodifyFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…