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.
 

24 lines
564 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: Value{Value: val}} }
func (v Value) AsFileList() FileList { return FileList{Value: v} }
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()
}