dop251 / goja

ECMAScript/JavaScript engine in pure Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I use a dynamic js string to exec by goja?

heliping opened this issue · comments

My js scripts saved in Mysql. I want to exec the js after builded the golang package.
I have a gin web server, using the restful api reading scripts from Mysql.
And then want to use the scripts by goja.
But I got a nil pointer error.
Is there any solution for this?

solved