I'm in need of a lightweight, pure Go package to do simple string evaluation/interpolation similar to what you can do in bash (but I don't want to call out to an external shell).
e.g. in bash you can do:
foo=3
bar=5
echo "Thing-$(( foo + bar * 3 ))"
Thing-18
I'd like some way to set var names in an environment and evaluate strings with some simple language embedded that would do simple substitution and arithmetic. I should be able to get by with =,+,-,*,/ as operators.
I've searched around a bit, but I think I may not be using the right keywords.
Pointers to anything like this that you know of would be greatly appreciated.