Debian Codegraph @

execution/execute_assign.go

raw symbols SCIP
1 package execution
2
3 import (
4 "context"
5 "fmt"
6 "github.com/tomwright/dasel/v3/model"
7 "github.com/tomwright/dasel/v3/selector/ast"
8 )
9
10 func executeAssign(ctx context.Context, left *model.Value, right *model.Value, _ ast.BinaryExpr) (*model.Value, error) {
11 err := left.Set(right)
12 if err != nil {
13 return nil, fmt.Errorf("error setting value: %w", err)
14 }
15 return right, nil
16 }