MCPcopy Create free account
hub / github.com/celer-pkg/celer / Put

Method Put

context/expr_vars.go:37–45  ·  view source on GitHub ↗

Put stores or updates an expression variable.

(key, value string)

Source from the content-addressed store, hash-verified

35
36// Put stores or updates an expression variable.
37func (e *ExprVars) Put(key, value string) {
38 if e.vars == nil {
39 e.vars = make(map[string]string)
40 }
41
42 if value != "" {
43 e.vars[key] = value
44 }
45}
46
47// Expand replace express with values.
48func (e ExprVars) Expand(content string) string {

Callers 6

checkAllToolsMethod · 0.80
InitWithPlatformMethod · 0.80
loadProjectVarsMethod · 0.80
InitMethod · 0.80
putExprVarsMethod · 0.80
RegisterExprVarsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected