# Knetic/govaluate

Arbitrary expression evaluation for golang

Repository: https://github.com/Knetic/govaluate
Canonical: https://ross.abutalabs.com/products/govaluate
Language: Go
License: MIT
License Family: permissive
Topics: go, evaluation, parsing, expression
Archived: true
Last push: 2025-03-25T06:03:18+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 13, release rhythm 8, longevity 100
- inputs: {"age_days": 4275, "days_push": 526, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3931, forks 515 (observed 2026-08-28T04:08:29.989965+00:00)

## What it is
A Go library for evaluating arbitrary C-like arithmetic and string expressions at runtime, with support for parameterized expressions. It lets applications accept user-defined or configurable expressions instead of hardcoding logic.

## Use cases
- evaluate user-defined expressions in go
- configurable validation rules for data
- evaluate alerting conditions from metrics
- parse and evaluate math expressions with parameters
- build a rule engine in golang
- runtime expression evaluation instead of hardcoding logic

## When to choose
- you need safe, sandboxed evaluation of arithmetic/string/boolean expressions in Go
- expressions must be configurable at runtime or supplied by users
- you want parameterized expressions evaluated against a map of values

## When to avoid
- you need a full scripting language with control flow, functions, or loops
- you want an actively maintained project - the repository is archived
- you need expression evaluation in a language other than Go

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, interpreter, developer-tools
- domain: developer-tools
- platform: go, cross-platform
- tags: expression-evaluation, rule-engine, arithmetic-expressions, configurable-logic, archived, algorithms, automation

## Member repositories
- Knetic/govaluate (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:29.989965+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:40.835710+00:00, confidence not recorded.
  - readme: https://github.com/Knetic/govaluate (fetched 2026-08-28T04:08:29.989965+00:00, sha 711045f7aad1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
