scripts

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2018 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DukErrNone no error (e.g. from duk_get_error_code())
	DukErrNone = 0
	// DukErrError Error
	DukErrError = 1
	// DukErrEvalError EvalError
	DukErrEvalError = 2
	// DukErrRangeError RangeError
	DukErrRangeError = 3
	// DukErrReferenceError ReferenceError
	DukErrReferenceError = 4
	// DukErrSyntaxError SyntaxError
	DukErrSyntaxError = 5
	// DukErrTypeError TypeError
	DukErrTypeError = 6
	// DukErrURIError URIError
	DukErrURIError = 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Context js 執行環境

func New

func New() *Context

New 創建 js 執行環境

func (*Context) Destory

func (c *Context) Destory()

Destory 銷毀執行環境

func (*Context) Install

func (c *Context) Install(root, dst, str string) (e error)

Install 執行 安裝 腳本

func (*Context) Merge

func (c *Context) Merge(root, src, dst, str string) (e error)

Merge 執行 合併 腳本

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL