init
This commit is contained in:
1 parent
bdbb3216ce
commit
c0775acb8a
25 files changed
+2252
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package script
|
||||
|
||||
var scriptEngine = &Goja{}
|
||||
|
||||
func Default() Engine {
|
||||
return scriptEngine
|
||||
}
|
||||
|
||||
type Engine interface {
|
||||
Compile(string) (Script, error)
|
||||
Execute(Script, interface{}) (interface{}, error)
|
||||
}
|
||||
|
||||
type Script interface {
|
||||
Src() interface{}
|
||||
}
|
||||
Reference in new issue
Block a user