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

Function indirectConfigValue

internal/cli/config.go:957–968  ·  view source on GitHub ↗
(value reflect.Value)

Source from the content-addressed store, hash-verified

955}
956
957func indirectConfigValue(value reflect.Value) (reflect.Value, bool) {
958 if !value.IsValid() {
959 return reflect.Value{}, false
960 }
961 for value.Kind() == reflect.Pointer {
962 if value.IsNil() {
963 return reflect.Value{}, false
964 }
965 value = value.Elem()
966 }
967 return value, true
968}
969
970func configStructNode(value reflect.Value) (any, bool) {
971 result := make(map[string]any)

Callers 1

configNodeFromValueFunction · 0.70

Calls 1

KindMethod · 0.65

Tested by

no test coverage detected