MCPcopy Index your code
hub / github.com/cortexlabs/cortex / ReadInterfaceMapValue

Function ReadInterfaceMapValue

pkg/lib/configreader/reader.go:574–584  ·  view source on GitHub ↗
(name string, interMap map[string]interface{})

Source from the content-addressed store, hash-verified

572}
573
574func ReadInterfaceMapValue(name string, interMap map[string]interface{}) (interface{}, bool) {
575 if interMap == nil {
576 return nil, false
577 }
578
579 val, ok := interMap[name]
580 if !ok {
581 return nil, false
582 }
583 return val, true
584}
585
586//
587// Prompt

Callers 15

BoolFromInterfaceMapFunction · 0.85
Int64FromInterfaceMapFunction · 0.85
Float64FromInterfaceMapFunction · 0.85
IntFromInterfaceMapFunction · 0.85
Int32PtrFromInterfaceMapFunction · 0.85
IntPtrFromInterfaceMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected