Web API package for use when compling Go to WASM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
243 B

//go:generate go run generate/main.go
package dom
import "syscall/js"
var (
Document *document
Window *window
)
func init() {
g := js.Global()
Document = &document{Value: g.Get("document")}
Window = &window{Value: g.Get("window")}
}