MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewContextWrapper

Function NewContextWrapper

datasource/context_wrapper.go:23–26  ·  view source on GitHub ↗
(val interface{})

Source from the content-addressed store, hash-verified

21}
22
23func NewContextWrapper(val interface{}) *ContextWrapper {
24 s := state{}
25 return &ContextWrapper{reflect.ValueOf(val), &s}
26}
27func (m *ContextWrapper) Get(key string) (value.Value, bool) {
28 defer func() { recover() }()
29 keyParts := strings.Split(key, ".")

Callers 3

TestBuiltinsFunction · 0.92
TestStructWrapperFunction · 0.92
TestFilterQlVmFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestBuiltinsFunction · 0.74
TestStructWrapperFunction · 0.74
TestFilterQlVmFunction · 0.74