console

package
v0.0.0-...-f567649 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectTo

func InjectTo(ctx *v8go.Context, opts ...Option) error

InjectTo injects console object to v8go.Context.

Types

type Console

type Console interface {
	GetErrorFunctionCallback() v8go.FunctionCallback
	GetLogFunctionCallback() v8go.FunctionCallback
}

func NewConsole

func NewConsole(opts ...Option) Console

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithError

func WithError(output io.Writer) Option

func WithLog

func WithLog(output io.Writer) Option

Jump to

Keyboard shortcuts

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