console

package
v0.0.0-...-115decd Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(runtime *jyg.Runtime)

func Require

func Require(runtime *jyg.Runtime, module *jyg.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