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.
 

64 lines
1.5 KiB

// Code generated DO NOT EDIT
// workerlocation.go
package dom
import "syscall/js"
type WorkerLocationIFace interface {
GetHash() string
GetHost() string
GetHostname() string
GetHref() string
GetOrigin() string
GetPathname() string
GetPort() string
GetProtocol() string
GetSearch() string
}
type WorkerLocation struct {
Value
}
func JSValueToWorkerLocation(val js.Value) WorkerLocation {
return WorkerLocation{Value: JSValueToValue(val)}
}
func (v Value) AsWorkerLocation() WorkerLocation { return WorkerLocation{Value: v} }
func NewWorkerLocation(args ...interface{}) WorkerLocation {
return WorkerLocation{Value: JSValueToValue(js.Global().Get("WorkerLocation").New(args...))}
}
func (w WorkerLocation) GetHash() string {
val := w.Get("hash")
return val.String()
}
func (w WorkerLocation) GetHost() string {
val := w.Get("host")
return val.String()
}
func (w WorkerLocation) GetHostname() string {
val := w.Get("hostname")
return val.String()
}
func (w WorkerLocation) GetHref() string {
val := w.Get("href")
return val.String()
}
func (w WorkerLocation) GetOrigin() string {
val := w.Get("origin")
return val.String()
}
func (w WorkerLocation) GetPathname() string {
val := w.Get("pathname")
return val.String()
}
func (w WorkerLocation) GetPort() string {
val := w.Get("port")
return val.String()
}
func (w WorkerLocation) GetProtocol() string {
val := w.Get("protocol")
return val.String()
}
func (w WorkerLocation) GetSearch() string {
val := w.Get("search")
return val.String()
}