log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Package log contains shared logging code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct{}

Log manages messages for the log div.

func (*Log) Chat

func (l *Log) Chat(text string)

Chat logs an chat-styled message.

func (*Log) Clear

func (l *Log) Clear()

Clear clears the log.

func (*Log) Error

func (l *Log) Error(text string)

Error logs an error-styled message.

func (*Log) Info

func (l *Log) Info(text string)

Info logs an info-styled message.

func (*Log) InitDom

func (l *Log) InitDom(ctx context.Context, wg *sync.WaitGroup)

InitDom registers log dom functions.

func (*Log) Warning

func (l *Log) Warning(text string)

Warning logs an warning-styled message.

Jump to

Keyboard shortcuts

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