console

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(runtime *goja.Runtime, printer Printer)

Types

type Printer

type Printer interface {
	Log(string)
	Warn(string)
	Error(string)
}

type PrinterFunc

type PrinterFunc func(s string)

func (PrinterFunc) Error

func (p PrinterFunc) Error(s string)

func (PrinterFunc) Log

func (p PrinterFunc) Log(s string)

func (PrinterFunc) Warn

func (p PrinterFunc) Warn(s string)

type Util

type Util struct {
	// contains filtered or unexported fields
}

func (*Util) Format

func (u *Util) Format(b *bytes.Buffer, f string, args ...goja.Value)

func (*Util) Js_format

func (u *Util) Js_format(call goja.FunctionCall) goja.Value

Jump to

Keyboard shortcuts

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