MCPcopy Create free account
hub / github.com/featureform/featureform / Get

Method Get

helpers/struct_map/struct_map.go:14–19  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

12}
13
14func (sm StructMap) Get(key string) (interface{}, bool) {
15 if idx := sm.indexOf(key); idx == -1 {
16 return nil, false
17 }
18 return sm.val.FieldByName(key).Interface(), true
19}
20
21func (sm StructMap) Size() int {
22 return sm.size

Callers 2

TestStructMapGetFunction · 0.95
HasMethod · 0.95

Calls 2

indexOfMethod · 0.95
InterfaceMethod · 0.80

Tested by 1

TestStructMapGetFunction · 0.76