window

package module
v0.0.0-...-3238207 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 3 Imported by: 2

README

window

ARCHIVED Much of the functionality here, was re-designed and added here: https://github.com/crhntr/dom. It has implementations that work on "golang.org/x/net/html".Node. It does not have event handlers.

A Go package wrapping the DOM based on code generation in "./dom.yml".

"./dom.yml" is basded on MDN docs. a Consider forking and modifying the dom.yml to match your needs.

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsoleLog

func ConsoleLog(a ...any)

func Document

func Document() dom.Document

func NewEventSource

func NewEventSource(url string, withCredentials bool) dom.EventSource

func NewObject

func NewObject() js.Value

func NewUint8ClampedArray

func NewUint8ClampedArray(length int) js.Value

func Window

func Window() dom.Window

func WrapEventListenerFunc

func WrapEventListenerFunc[E dom.EventValue](fn func(event E)) js.Func

Types

This section is empty.

Directories

Path Synopsis
internal
generate command

Jump to

Keyboard shortcuts

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