history

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 History")

	ErrNotAnHistory = errors.New("Object is not an History")
)

Functions

func GetInterface

func GetInterface() js.Value

GetJSInterface get the JS interface of formdata

Types

type History

type History struct {
	baseobject.BaseObject
}

History struct

func NewFromJSObject

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

func (History) Back

func (h History) Back() error

func (History) Forward

func (h History) Forward() error

func (History) Go

func (h History) Go(position int) error

func (History) History_

func (h History) History_() History

func (History) Length

func (h History) Length() (int, error)

func (History) PushState

func (h History) PushState(obj interface{}, title string, url ...string) error

func (History) ReplaceState

func (h History) ReplaceState(obj interface{}, title string, url ...string) error

func (History) State

func (h History) State() (interface{}, error)

type HistoryFrom

type HistoryFrom interface {
	History_() History
}

Jump to

Keyboard shortcuts

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