Goja
Embed a JavaScript interpreter in a Go program.
dop251 · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/dop251/goja at v0.0.0-20261122185237-35fdc4b88e39. Evaluate a harmless synthetic JavaScript array total and inspect the result.
What we tested
v0.0.0-20261122185237-35fdc4b88e39. Evaluate a harmless synthetic JavaScript array total and inspect the result. Evaluated the local JavaScript fixture and returned the total twelve.