log

package
v0.0.0-...-b4a4aa2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Panic

func Panic(a ...interface{})

func Publish

func Publish(a ...interface{})

Publish outputs a log message.

If magic256 is run inside a web browser then the log will appear in the web browser's developer console. I.e., this is similar to JavaScript's console.log().

Example

If the following is executed:

Publish("Hello world!")

Then the output will be:

magic256: Hello world!

func Publishf

func Publishf(format string, a ...interface{})

Publishf outputs a formatted log message.

If magic256 is run inside a web browser then the log will appear in the web browser's developer console. I.e., this is similar to JavaScript's console.log().

Example

If the following is executed:

var name = "Joe Blow"

Publishf("Hello %s!", name)

Then the output will be:

magic256: Hello Joe Blow!

Types

This section is empty.

Jump to

Keyboard shortcuts

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