всички настройки
bookworm  ] [  trixie  ] [  sid  ]
[ Източник: golang-github-knetic-govaluate  ]

Пакет: golang-github-knetic-govaluate-dev (3.0.0+git20171022.9aa4983-2)

Връзки за golang-github-knetic-govaluate-dev

Screenshot

Ресурси за Debian:

Изтегляне на пакет-източник golang-github-knetic-govaluate.

Отговорници:

Външни препратки:

Подобни пакети:

Arbitrary expression evaluation for golang (library)

Provides support for evaluating arbitrary C-like artithmetic/string expressions.

Sometimes, you can't know ahead-of-time what an expression will look like, or you want those expressions to be configurable. Perhaps you've got a set of data running through your application, and you want to allow your users to specify some validations to run on it before committing it to a database. Or maybe you've written a monitoring framework which is capable of gathering a bunch of metrics, when evaluating a few expressions to see if any metrics should be alerted upon, but the conditions for alerting are different for each monitor.

A lot of people wind up writing their own half-baked style of evaluation language that fits their needs, but isn't complete. Or they wind up baking the expression into the actual executable, even if they know it's subject to change. These strategies may work, but they take time to implement, time for users to learn, and induce technical debt as requirements change. This library is meant to cover all the normal C-like expressions, so that you don't have to reinvent one of the oldest wheels on a computer.

Изтегляне на golang-github-knetic-govaluate-dev

Изтегляне за всички налични архитектури
Архитектура Големина на пакета Големина след инсталиране Файлове
all 32,2 кБ202,0 кБ [списък на файловете]