Gates Save

An embedded language for Go.

Project README

Gates

An embedded language for Go.

Features

  • Easily embedded in Go.
  • JavaScript-like syntax with native int64 support.
  • First class functions.
  • Execution time limit.

Comparision

Gates Lua 5.3+ JavaScript
Int64 support Y Y N
Compatible with JSON Y N (hard to distinguish between [] and {}) Y
Easily embedded in Go Y N N

Try Gates in Command Line

$ go get -u github.com/lujjjh/gates/cmd/gates
$ echo '[1, 2, 3] | map(x => x * x)' | gates
# 1,4,9

Data Types

  • number (int64 / float64)
  • string
  • bool
  • map
  • array
  • function

Examples

View Examples

Credits

Open Source Agenda is not affiliated with "Gates" Project. README Source: lujjjh/gates
Stars
83
Open Issues
4
Last Commit
3 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating