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.
 

31 lines
762 B

// Code generated DO NOT EDIT
// domstringlist.go
package dom
import "syscall/js"
type DOMStringListIFace interface {
Contains(args ...interface{}) bool
Item(args ...interface{}) string
GetLength() float64
}
type DOMStringList struct {
Value
}
func jsValueToDOMStringList(val js.Value) DOMStringList {
return DOMStringList{Value: Value{Value: val}}
}
func (v Value) AsDOMStringList() DOMStringList { return DOMStringList{Value: v} }
func (d DOMStringList) Contains(args ...interface{}) bool {
val := d.Call("contains", args...)
return val.Bool()
}
func (d DOMStringList) Item(args ...interface{}) string {
val := d.Call("item", args...)
return val.String()
}
func (d DOMStringList) GetLength() float64 {
val := d.Get("length")
return val.Float()
}