location

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented Location")
	ErrNotALocation   = errors.New("Object is not a Location")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of formdata

Types

type Location

type Location struct {
	baseobject.BaseObject
}

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Location, error)

func (Location) Assign

func (l Location) Assign(url string) error

func (Location) Hash

func (l Location) Hash() (string, error)

func (Location) Host

func (l Location) Host() (string, error)

func (Location) Hostname

func (l Location) Hostname() (string, error)

func (Location) Href

func (l Location) Href() (string, error)

func (Location) Location_

func (l Location) Location_() Location

func (Location) Origin

func (l Location) Origin() (string, error)

func (Location) Password added in v1.1.0

func (l Location) Password() (string, error)

func (Location) Pathname

func (l Location) Pathname() (string, error)

func (Location) Port

func (l Location) Port() (string, error)

func (Location) Protocol

func (l Location) Protocol() (string, error)

func (Location) Reload

func (l Location) Reload(value bool) error

func (Location) Replace

func (l Location) Replace(url string) error

func (Location) Search

func (l Location) Search() (string, error)

func (Location) Username added in v1.1.0

func (l Location) Username() (string, error)

type LocationFrom

type LocationFrom interface {
	Location_() Location
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL