bulpherjs/common/log.go

11 lines
197 B
Go
Raw Normal View History

package common
import (
"github.com/gopherjs/gopherjs/js"
)
// Log logs everything passed to Javascript console.
func Log(args ...interface{}) {
js.Global.Get(JSConsole).Call("log", args...)
}