Evaluate formula in Go

前端 未结 8 989
梦如初夏
梦如初夏 2021-01-02 12:46

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:

<
8条回答
  •  [愿得一人]
    2021-01-02 13:27

    There is no such module in Go. You have to build your own. You could use subpackages of the go package, but they might be overkill for your application.

提交回复
热议问题