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.
 

17 lines
302 B

// DO NOT EDIT - generated file
package dom
import "syscall/js"
type Window struct {
Value
}
func NewWindow(v js.Value) *Window {
val := Value{Value: v}
if val.IsNull() || val.IsUndefined() {
return nil
}
return val.ToWindow()
}
func (v Value) ToWindow() *Window { return &Window{Value: v} }