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.
 

27 lines
699 B

// Code generated DO NOT EDIT
// filelist.go
package dom
import "syscall/js"
type FileListIFace interface {
Item(args ...interface{}) File
GetLength() int
}
type FileList struct {
Value
}
func JSValueToFileList(val js.Value) FileList { return FileList{Value: JSValueToValue(val)} }
func (v Value) AsFileList() FileList { return FileList{Value: v} }
func NewFileList(args ...interface{}) FileList {
return FileList{Value: JSValueToValue(js.Global().Get("FileList").New(args...))}
}
func (f FileList) Item(args ...interface{}) File {
val := f.Call("item", args...)
return JSValueToFile(val.JSValue())
}
func (f FileList) GetLength() int {
val := f.Get("length")
return val.Int()
}