Using Go (golang) I\'d like to take a string with a formula and evaluate it with pre-defined values. Here\'s a way to do it with python\'s parser module:
parser
This package will probably work for your needs: https://github.com/Knetic/govaluate
expression, err := govaluate.NewEvaluableExpression("(x + 2) / 10"); parameters := make(map[string]interface{}, 8) parameters["x"] = 8; result, err := expression.Evaluate(parameters);