Documentation ¶
Overview ¶
包JSRE为JavaScript提供执行环境。
Index ¶
- Variables
- type JSRE
- func (re *JSRE) Bind(name string, v interface{}) error
- func (re *JSRE) Compile(filename string, src interface{}) (err error)
- func (jsre *JSRE) CompleteKeywords(line string) []string
- func (re *JSRE) Do(fn func(*otto.Otto))
- func (re *JSRE) Evaluate(code string, w io.Writer) error
- func (re *JSRE) Exec(file string) error
- func (re *JSRE) Get(ns string) (v otto.Value, err error)
- func (re *JSRE) Run(code string) (v otto.Value, err error)
- func (re *JSRE) Set(ns string, v interface{}) (err error)
- func (re *JSRE) Stop(waitForCallbacks bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BigNumber_JS = deps.MustAsset("bignumber.js") Web3_JS = deps.MustAsset("web3.js") )
Functions ¶
This section is empty.
Types ¶
type JSRE ¶
type JSRE struct {
// contains filtered or unexported fields
}
func (*JSRE) CompleteKeywords ¶
completekeywords返回给定行的潜在连续性。既然是 经过评估,调用方需要确保评估行没有副作用。
Click to show internal directories.
Click to hide internal directories.