console

package
v0.0.0-...-f5c8ebd Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "node:console"

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