mirror of
https://github.com/taigrr/wasm-experiments
synced 2025-01-18 04:03:21 -08:00
25 lines
336 B
Go
25 lines
336 B
Go
package dom
|
|
|
|
import (
|
|
"github.com/dennwc/dom/js"
|
|
"image"
|
|
)
|
|
|
|
var (
|
|
Doc = GetDocument()
|
|
Body = Doc.GetElementsByTagName("body")[0]
|
|
)
|
|
|
|
type Value = js.JSRef
|
|
|
|
func ConsoleLog(args ...interface{}) {
|
|
js.Get("console").Call("log", args...)
|
|
}
|
|
|
|
func Loop() {
|
|
<-(chan struct{})(nil)
|
|
}
|
|
|
|
type Point = image.Point
|
|
type Rect = image.Rectangle
|