-
-
Notifications
You must be signed in to change notification settings - Fork 463
-
I have some map fields in a Env , and a string content . Env struct is like this :
type Env struct { msg string fileds map[string]any }
Now I want to add filed by the msg content , such as .
fileds["len"] = len(msgs) fileds["uppper"] = uppper(msgs)
At last return the fields to the expr script caller.
How can I do that.
Thanks.
And I wonder why not provide built in much more map functions.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I didn’t get the question. Expr doesn’t support assignment operations. You can add them as functions.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment