MCPcopy Create free account
hub / github.com/CloudyKit/jet / Set

Method Set

exec.go:39–42  ·  view source on GitHub ↗
(name string, v interface{})

Source from the content-addressed store, hash-verified

37}
38
39func (scope VarMap) Set(name string, v interface{}) VarMap {
40 scope[name] = reflect.ValueOf(v)
41 return scope
42}
43
44func (scope VarMap) SetFunc(name string, v Func) VarMap {
45 scope[name] = reflect.ValueOf(v)

Callers 15

TestDumpFunction · 0.45
initFunction · 0.45
RunJetTestFunction · 0.45
TestEvalActionNodeFunction · 0.45
TestEvalIfNodeFunction · 0.45
TestEvalRangeNodeFunction · 0.45
TestEvalDefaultFuncsFunction · 0.45
TestEvalIndexExpressionFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestDumpFunction · 0.36
initFunction · 0.36
RunJetTestFunction · 0.36
TestEvalActionNodeFunction · 0.36
TestEvalIfNodeFunction · 0.36
TestEvalRangeNodeFunction · 0.36
TestEvalDefaultFuncsFunction · 0.36
TestEvalIndexExpressionFunction · 0.36