An embedded language for Go.
- Easily embedded in Go.
- JavaScript-like syntax with native int64 support.
- First class functions.
- Execution time limit.
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 |
$ go get -u github.com/lujjjh/gates/cmd/gates
$ echo '[1, 2, 3] | map(x => x * x)' | gates
# 1,4,9
- number (int64 / float64)
- string
- bool
- map
- array
- function