v8go:从Go执行JavaScript 源码
从Go执行JavaScript 用法 import "rogchap.com/v8go" 运行脚本 ctx , _ := v8go . NewContext ( nil ) // creates a new V8 context with a new Isolate aka VM ctx . RunScript ( "const add = (a, b) => a + b" , "math.js" ) // executes a script on the global context ctx . RunScript ( "const result = add(3, 4)" , "main.j
用户评论