MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / intFromAny

Function intFromAny

ui/runtime.go:934–945  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

932 switch item := value.(type) {
933 case map[string]any:
934 return item, true
935 case map[string]string:
936 out := make(map[string]any, len(item))
937 for key, value := range item {
938 out[key] = value
939 }
940 return out, true
941 }
942 rv := reflect.ValueOf(value)
943 if rv.Kind() == reflect.Pointer {
944 if rv.IsNil() {
945 return nil, false
946 }
947 rv = rv.Elem()
948 }

Callers 4

buildTaskBlocksMethod · 0.70
taskSignatureFunction · 0.70
recordTaskActivityMethod · 0.70
renderTaskSnapshotMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected