Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.