{"id":13564052,"url":"https://github.com/lujjjh/gates","last_synced_at":"2025-04-30T13:51:25.449Z","repository":{"id":55777909,"uuid":"154867477","full_name":"lujjjh/gates","owner":"lujjjh","description":"An embedded language for Go.","archived":false,"fork":false,"pushed_at":"2020-12-12T08:33:16.000Z","size":156,"stargazers_count":83,"open_issues_count":4,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T16:39:38.807Z","etag":null,"topics":["embedded-language","go","golang","language","scripting-language","vm"],"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/lujjjh.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}},"created_at":"2018-10-26T17:04:39.000Z","updated_at":"2024-01-04T16:27:24.000Z","dependencies_parsed_at":"2022-08-15T07:00:43.511Z","dependency_job_id":null,"html_url":"https://github.com/lujjjh/gates","commit_stats":null,"previous_names":["gates/gates"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lujjjh%2Fgates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lujjjh%2Fgates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lujjjh%2Fgates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lujjjh%2Fgates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lujjjh","download_url":"https://codeload.github.com/lujjjh/gates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251714932,"owners_count":21631806,"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":["embedded-language","go","golang","language","scripting-language","vm"],"created_at":"2024-08-01T13:01:26.013Z","updated_at":"2025-04-30T13:51:25.420Z","avatar_url":"https://github.com/lujjjh.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Gates\n\n![](https://github.com/lujjjh/gates/workflows/Test/badge.svg)\n\n\u003e An embedded language for Go.\n\n## Features\n\n- Easily embedded in Go.\n- JavaScript-like syntax with native int64 support.\n- First class functions.\n- Execution time limit.\n\n## Comparision\n\n|                       | Gates | Lua 5.3+                                      | JavaScript |\n|-----------------------|:-----:|:---------------------------------------------:|:----------:|\n| Int64 support         | Y     | Y                                             | N          |\n| Compatible with JSON  | Y     | N (hard to distinguish between `[]` and `{}`) | Y          |\n| Easily embedded in Go | Y     | N                                             | N          |\n\n## Try Gates in Command Line\n\n```sh\n$ go get -u github.com/lujjjh/gates/cmd/gates\n$ echo '[1, 2, 3] | map(x =\u003e x * x)' | gates\n# 1,4,9\n```\n\n## Data Types\n\n- number (int64 / float64)\n- string\n- bool\n- map\n- array\n- function\n\n## Examples\n\n[View Examples](/examples/)\n\n## Credits\n\n- https://github.com/dop251/goja/\n- https://golang.org/pkg/go/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flujjjh%2Fgates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flujjjh%2Fgates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flujjjh%2Fgates/lists"}