{"id":22654235,"url":"https://github.com/stevencyb/goeval","last_synced_at":"2025-07-05T01:08:15.501Z","repository":{"id":232576604,"uuid":"784122084","full_name":"StevenCyb/goeval","owner":"StevenCyb","description":"A GoLang library for simple expression evaluation.","archived":false,"fork":false,"pushed_at":"2024-04-10T09:54:39.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-10T11:36:28.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StevenCyb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-09T08:23:26.000Z","updated_at":"2024-06-19T12:39:51.808Z","dependencies_parsed_at":null,"dependency_job_id":"ffc41850-d058-4183-81e7-a2ea2102eeab","html_url":"https://github.com/StevenCyb/goeval","commit_stats":null,"previous_names":["stevencyb/goeval"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/StevenCyb/goeval","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Fgoeval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Fgoeval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Fgoeval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Fgoeval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StevenCyb","download_url":"https://codeload.github.com/StevenCyb/goeval/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Fgoeval/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263641606,"owners_count":23493420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T09:35:58.890Z","updated_at":"2025-07-05T01:08:15.477Z","avatar_url":"https://github.com/StevenCyb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goeval\nA GoLang library for simple expression evaluation.\n```go\nexpr.Eval(\"true  \u0026\u0026 true\") # true \nexpr.Eval(\"2+3\")   # 5 \nexpr.Eval(\"1+3\u003e3\") # true \nexpr.Eval(\"('fo'!='bar')\u0026\u0026(2!=3)\") # true \n```\n\n[![GitHub release badge](https://badgen.net/github/release/StevenCyb/goeval/latest?label=Latest\u0026logo=GitHub)](https://github.com/StevenCyb/goeval/releases/latest)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/StevenCyb/goeval/ci-test.yml?label=Tests\u0026logo=GitHub)\n![GitHub](https://img.shields.io/github/license/StevenCyb/goeval)\n\n## Logical Operation\nSupported logical operations are `\u0026\u0026` and `||`.\n* On text, `\"true\"` or `'true'` (case insensitive) is `true`, else `false`\n* On numbers greater zero is `true`, else `false`\n\n## Comparison Operation\nSupported comparisons are `==`, `!=`, `\u003c`, `\u003e`, `\u003c=` or `\u003e=`.\nWhile equal and not equal directly uses the value. Greater(equal) and smaller(equal) will behave different:\n* On boolean a `0` and `1` is used (`true\u003e0` = `true`, `false\u003e0` = `false`).\n* On text the length is used (`\"hello\"\u003e\"hey\"` = `true`).\n\n## Arithmetic Operation\nSupported arithmetics are `+`, `-`, `*`, `/` and `%`.\n* On boolean a `0` and `1` is used (`true+0` = `1`, `false+0` = `0`).\n* On text the length is used (`\"foo\"+\"bar\"` = `6`).\n\n## Context\nContext can be used to group a part of the expression to prioritize the evaluation.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevencyb%2Fgoeval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevencyb%2Fgoeval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevencyb%2Fgoeval/lists"}