module

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterConsoleModule

func RegisterConsoleModule(v IWrappedVm) error

func RegisterRegexModule

func RegisterRegexModule(v IWrappedVm) error

Types

type Console

type Console struct {
	Log func(data ...interface{}) `json:"log"`
}

type IWrappedVm

type IWrappedVm interface {
	RegisterModule(moduleName string, module interface{}) error
	ToValue(i interface{}) goja.Value
	Logger() go_logger.InterfaceLogger
}

type Regex

type Regex struct {
	Match func(pattern string, targetStr string) bool `json:"match"`
}

Jump to

Keyboard shortcuts

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