MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / EvalString

Function EvalString

go/engine/expr/expression.go:47–53  ·  view source on GitHub ↗

EvalString is a convenience that evaluates and returns a string.

(expr workflow.Expression, resolve VarResolver)

Source from the content-addressed store, hash-verified

45 if expr.DataType == workflowapi.String {
46 return evalStringExpr(expr.Expression, refs)
47 }
48 return evalCodeExpr(expr.Expression, expr.DataType, refs)
49}
50
51// EvalString is a convenience that evaluates and returns a string.
52func EvalString(expr workflowapi.Expression, resolve VarResolver) (string, error) {
53 v, err := Eval(expr, resolve)
54 if err != nil {
55 return "", err
56 }

Callers

nothing calls this directly

Calls 2

EvalFunction · 0.85
AsStringMethod · 0.80

Tested by

no test coverage detected