console

package module
v0.0.0-...-5b8bca7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 8 Imported by: 0

README

Console API for Go

💻 WHATWG Console Standard bindings & implementation for Go

Installation

go get github.com/jcbhmr/go-console

Usage

console.ConsoleLog("Hello %d!", "Alan Turing")
console.ConsoleWarn("%cUsing backup", "color: red; text-decoration: underline")
console.ConsoleError("Uh oh! %o", map[string]any{"helpText": "File not found"})
// Output:
// Hello NaN!
// Using backup
// Uh oh! map[helpText:File not found]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsoleAssert

func ConsoleAssert(condition *bool, data ...any)

func ConsoleClear

func ConsoleClear()

func ConsoleCount

func ConsoleCount(label *string)

func ConsoleCountReset

func ConsoleCountReset(label *string)

func ConsoleDebug

func ConsoleDebug(data ...any)

func ConsoleDir

func ConsoleDir(item any, options any)

func ConsoleDirxml

func ConsoleDirxml(data ...any)

func ConsoleError

func ConsoleError(data ...any)

func ConsoleGroup

func ConsoleGroup(data ...any)

func ConsoleGroupCollapsed

func ConsoleGroupCollapsed(data ...any)

func ConsoleGroupEnd

func ConsoleGroupEnd()

func ConsoleInfo

func ConsoleInfo(data ...any)

func ConsoleLog

func ConsoleLog(data ...any)

func ConsoleTable

func ConsoleTable(tabularData any, properties []string)

func ConsoleTime

func ConsoleTime(label *string)

func ConsoleTimeEnd

func ConsoleTimeEnd(label *string)

func ConsoleTimeLog

func ConsoleTimeLog(label *string, data ...any)

func ConsoleTrace

func ConsoleTrace(data ...any)

func ConsoleWarn

func ConsoleWarn(data ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳