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.
 

32 lines
863 B

// Code generated DO NOT EDIT
// timeranges.go
package dom
import "syscall/js"
type TimeRangesIFace interface {
End(args ...interface{}) float64
GetLength() int
Start(args ...interface{}) float64
}
type TimeRanges struct {
Value
}
func JSValueToTimeRanges(val js.Value) TimeRanges { return TimeRanges{Value: JSValueToValue(val)} }
func (v Value) AsTimeRanges() TimeRanges { return TimeRanges{Value: v} }
func NewTimeRanges(args ...interface{}) TimeRanges {
return TimeRanges{Value: JSValueToValue(js.Global().Get("TimeRanges").New(args...))}
}
func (t TimeRanges) End(args ...interface{}) float64 {
val := t.Call("end", args...)
return val.Float()
}
func (t TimeRanges) GetLength() int {
val := t.Get("length")
return val.Int()
}
func (t TimeRanges) Start(args ...interface{}) float64 {
val := t.Call("start", args...)
return val.Float()
}