Documentation ¶
Index ¶
- func ConvertJsUint8ArrayToByteSlice(uint8ArrObj *v8go.Object) []byte
- func GetAbsPath(filename string) (string, error)
- func ReadFile(name string) ([]byte, error)
- func WriteFile(name string, data []byte, perm os.FileMode) error
- type PackageConfig
- type ScriptPreProcessor
- type TsEnv
- func (t *TsEnv) CreateEmptyObject() (*v8go.Object, error)
- func (t *TsEnv) Destroy()
- func (t *TsEnv) Init(waitDebugger bool, debugEnable bool, debugPort uint32) error
- func (t *TsEnv) Print(in string, args ...interface{})
- func (t *TsEnv) RunScriptWithWrapperByPath(fileName string, preprocessor ScriptPreProcessor) (*v8go.Value, error)
- func (t *TsEnv) RunScriptWithWrapperByScript(fullPath string, preprocessor ScriptPreProcessor, script string, ...) (*v8go.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAbsPath ¶
func ReadFile ¶
ReadFile reads the named file and returns the contents. A successful call returns err == nil, not err == EOF. Because ReadFile reads the whole file, it does not treat an EOF from Read as an error to be reported.
Types ¶
type PackageConfig ¶
type PackageConfig struct {
Main string `json:"main"`
}
type ScriptPreProcessor ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.