MCPcopy Create free account
hub / github.com/compozy/agh / configSequenceNode

Function configSequenceNode

internal/cli/config.go:1021–1030  ·  view source on GitHub ↗
(value reflect.Value, fieldName string)

Source from the content-addressed store, hash-verified

1019}
1020
1021func configSequenceNode(value reflect.Value, fieldName string) (any, bool) {
1022 items := make([]any, 0, value.Len())
1023 for i := 0; i < value.Len(); i++ {
1024 node, hasValue := configNodeFromValue(value.Index(i), fieldName)
1025 if hasValue {
1026 items = append(items, node)
1027 }
1028 }
1029 return items, true
1030}
1031
1032func configScalarNode(value reflect.Value) (any, bool) {
1033 switch value.Kind() {

Callers 1

configNodeFromValueFunction · 0.70

Calls 3

appendFunction · 0.85
configNodeFromValueFunction · 0.70
LenMethod · 0.45

Tested by

no test coverage detected