export

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Export

type Export interface {
	// Value returns the js.Value of the export.
	MarshalJS() js.Value

	// Set a value on the export's js.Value.
	Set(name string, value interface{})

	// Get a value from the export's js.Value.
	Get(name string) js.Value

	// Call a function on the export's js.Value.
	Call(name string, args ...interface{}) js.Value

	// Delete an attribute from the export's js.Value.
	Delete(name string)

	// Remove the export from the DOM window.
	Remove() error
}

func NewExport

func NewExport(exportName string) Export

NewExport returns a new Export.

It will register the export on the DOM window.

func NewFromValue

func NewFromValue(value js.Value) Export

NewFromValue returns a new Export from a js.Value.

Jump to

Keyboard shortcuts

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