console

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(runtime *goja.Runtime)

func Require

func Require(runtime *goja.Runtime, module *goja.Object)

func RequireWithPrinter

func RequireWithPrinter(printer Printer) require.ModuleLoader

Types

type Console

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

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)

Jump to

Keyboard shortcuts

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