javascript

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 2 Imported by: 65

Documentation

Overview

Package javascript contains types related to javascript language.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeURI

func DecodeURI(encodedURI string) (_result string)

func DecodeURIComponent

func DecodeURIComponent(encodedURI string) (_result string)

func EncodeURI

func EncodeURI(uri string) (_result string)

func EncodeURIComponent

func EncodeURIComponent(uri string) (_result string)

func Eval

func Eval(code string) (_result js.Value)

func GlobalThis

func GlobalThis() js.Value

GlobalThis returning attribute 'globalThis' with type Any (idl: any).

func IsArray

func IsArray(value interface{}) (_result bool)

func IsFinite

func IsFinite(value float64) (_result bool)

func IsNaN

func IsNaN(value float64) (_result bool)

func ParseFloat

func ParseFloat(value interface{}) (_result float64)

func ParseInt

func ParseInt(value interface{}, radix int) (_result int)

Types

type Array

type Array struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Array

func ArrayFromJS

func ArrayFromJS(value js.Value) *Array

ArrayFromJS is casting a js.Value into Array.

func ArrayFromWrapper

func ArrayFromWrapper(input core.Wrapper) *Array

ArrayFromJS is casting from something that holds a js.Value into Array.

func From

func From(arrayLike interface{}, mapFn *ArrayMapFn, thisArg interface{}) (_result *Array)

func NewArray

func NewArray(elements ...interface{}) (_result *Array)

func (*Array) Concat

func (_this *Array) Concat(arrayOrValues interface{}) (_result *Array)

func (*Array) CopyWithin

func (_this *Array) CopyWithin(target int, start *int, end *int) (_result *Array)

func (*Array) Entries

func (_this *Array) Entries() (_result *ArrayEntryIterator)

func (*Array) Every

func (_this *Array) Every(callback *ArrayTestCallback, thisArg interface{}) (_result bool)

func (*Array) Fill

func (_this *Array) Fill(value interface{}, start *int, end *int) (_result *Array)

func (*Array) Filter

func (_this *Array) Filter(callback *ArrayTestCallback, thisArg interface{}) (_result *Array)

func (*Array) Find

func (_this *Array) Find(callback *ArrayTestCallback, thisArg interface{}) (_result js.Value)

func (*Array) FindIndex

func (_this *Array) FindIndex(callback *ArrayTestCallback, thisArg interface{}) (_result int)

func (*Array) Flat

func (_this *Array) Flat(depth *int) (_result *Array)

func (*Array) FlatMap

func (_this *Array) FlatMap(callback *ArrayValueCallback, thisArg interface{}) (_result *Array)

func (*Array) ForEach

func (_this *Array) ForEach(callback *ArrayForEachCallback, thisArg interface{})

func (*Array) Includes

func (_this *Array) Includes(valueToFind interface{}, fromIndex int) (_result bool)

func (*Array) Index

func (_this *Array) Index(index uint) (_result js.Value)

func (*Array) IndexOf

func (_this *Array) IndexOf(value interface{}, fromIndex int) (_result int)

func (*Array) JSValue

func (_this *Array) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Array) Join

func (_this *Array) Join(separator *string) (_result string)

func (*Array) Keys

func (_this *Array) Keys() (_result *ArrayKeyIterator)

func (*Array) LastIndexOf

func (_this *Array) LastIndexOf(searchElement interface{}, fromIndex *int) (_result int)

func (*Array) Length

func (_this *Array) Length() int

Length returning attribute 'length' with type int (idl: long).

func (*Array) Map

func (_this *Array) Map(callback *ArrayMapCallback, thisArg interface{}) (_result *Array)

func (*Array) Pop

func (_this *Array) Pop() (_result js.Value)

func (*Array) Push

func (_this *Array) Push(element1 interface{}, elementN ...interface{}) (_result int)

func (*Array) Reduce

func (_this *Array) Reduce(callback *ArrayReduceCallback, initailValue interface{}) (_result js.Value)

func (*Array) ReduceRight

func (_this *Array) ReduceRight(callback *ArrayReduceCallback, initailValue interface{}) (_result js.Value)

func (*Array) Reverse

func (_this *Array) Reverse() (_result *Array)

func (*Array) SetIndex

func (_this *Array) SetIndex(index uint, value interface{})

func (*Array) Shift

func (_this *Array) Shift() (_result js.Value)

func (*Array) Slice

func (_this *Array) Slice(begin *int, end *int) (_result *Array)

func (*Array) Some

func (_this *Array) Some(callback *ArrayTestCallback, thisArg interface{}) (_result bool)

func (*Array) Sort

func (_this *Array) Sort(compare *ArrayCompareFunction) (_result *Array)

func (*Array) Splice

func (_this *Array) Splice(start int, deleteCount int, itemsToAddAfterStart ...interface{}) (_result *Array)

func (*Array) ToLocaleString

func (_this *Array) ToLocaleString(locales *string) (_result string)

func (*Array) ToString

func (_this *Array) ToString() (_result string)

func (*Array) Unshift

func (_this *Array) Unshift(element1 interface{}, elementN ...interface{}) (_result *Array)

func (*Array) Values

func (_this *Array) Values() (_result *ArrayValueIterator)

type ArrayBuffer

type ArrayBuffer struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: ArrayBuffer

func ArrayBufferFromJS

func ArrayBufferFromJS(value js.Value) *ArrayBuffer

ArrayBufferFromJS is casting a js.Value into ArrayBuffer.

func ArrayBufferFromWrapper

func ArrayBufferFromWrapper(input core.Wrapper) *ArrayBuffer

ArrayBufferFromJS is casting from something that holds a js.Value into ArrayBuffer.

func (*ArrayBuffer) JSValue

func (_this *ArrayBuffer) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type ArrayCompareFunction

type ArrayCompareFunction js.Func

ArrayCompareFunction is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func ArrayCompareFunctionToJS

func ArrayCompareFunctionToJS(callback ArrayCompareFunctionFunc) *ArrayCompareFunction

type ArrayCompareFunctionFunc

type ArrayCompareFunctionFunc func(a js.Value, b js.Value) int

callback: ArrayCompareFunction

func ArrayCompareFunctionFromJS

func ArrayCompareFunctionFromJS(_value js.Value) ArrayCompareFunctionFunc

type ArrayEntryIterator

type ArrayEntryIterator struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: ArrayEntryIterator

func ArrayEntryIteratorFromJS

func ArrayEntryIteratorFromJS(value js.Value) *ArrayEntryIterator

ArrayEntryIteratorFromJS is casting a js.Value into ArrayEntryIterator.

func ArrayEntryIteratorFromWrapper

func ArrayEntryIteratorFromWrapper(input core.Wrapper) *ArrayEntryIterator

ArrayEntryIteratorFromJS is casting from something that holds a js.Value into ArrayEntryIterator.

func (*ArrayEntryIterator) JSValue

func (_this *ArrayEntryIterator) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*ArrayEntryIterator) Next

func (_this *ArrayEntryIterator) Next() (_result *ArrayEntryValue)

type ArrayEntryValue

type ArrayEntryValue struct {
	Value []js.Value
	Done  bool
}

dictionary: ArrayEntryValue

func ArrayEntryValueFromJS

func ArrayEntryValueFromJS(value js.Value) *ArrayEntryValue

ArrayEntryValueFromJS is allocating a new ArrayEntryValue object and copy all values in the value javascript object.

func (*ArrayEntryValue) JSValue

func (_this *ArrayEntryValue) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type ArrayForEachCallback

type ArrayForEachCallback js.Func

ArrayForEachCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func ArrayForEachCallbackToJS

func ArrayForEachCallbackToJS(callback ArrayForEachCallbackFunc) *ArrayForEachCallback

type ArrayForEachCallbackFunc

type ArrayForEachCallbackFunc func(value js.Value, index int, array *Array)

callback: ArrayForEachCallback

func ArrayForEachCallbackFromJS

func ArrayForEachCallbackFromJS(_value js.Value) ArrayForEachCallbackFunc

type ArrayKeyIterator

type ArrayKeyIterator struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: ArrayKeyIterator

func ArrayKeyIteratorFromJS

func ArrayKeyIteratorFromJS(value js.Value) *ArrayKeyIterator

ArrayKeyIteratorFromJS is casting a js.Value into ArrayKeyIterator.

func ArrayKeyIteratorFromWrapper

func ArrayKeyIteratorFromWrapper(input core.Wrapper) *ArrayKeyIterator

ArrayKeyIteratorFromJS is casting from something that holds a js.Value into ArrayKeyIterator.

func (*ArrayKeyIterator) JSValue

func (_this *ArrayKeyIterator) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*ArrayKeyIterator) Next

func (_this *ArrayKeyIterator) Next() (_result *ArrayKeyValue)

type ArrayKeyValue

type ArrayKeyValue struct {
	Value int
	Done  bool
}

dictionary: ArrayKeyValue

func ArrayKeyValueFromJS

func ArrayKeyValueFromJS(value js.Value) *ArrayKeyValue

ArrayKeyValueFromJS is allocating a new ArrayKeyValue object and copy all values in the value javascript object.

func (*ArrayKeyValue) JSValue

func (_this *ArrayKeyValue) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type ArrayMapCallback

type ArrayMapCallback js.Func

ArrayMapCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func ArrayMapCallbackToJS

func ArrayMapCallbackToJS(callback ArrayMapCallbackFunc) *ArrayMapCallback

type ArrayMapCallbackFunc

type ArrayMapCallbackFunc func(value js.Value, index int, array *Array) interface{}

callback: ArrayMapCallback

func ArrayMapCallbackFromJS

func ArrayMapCallbackFromJS(_value js.Value) ArrayMapCallbackFunc

type ArrayMapFn

type ArrayMapFn js.Func

ArrayMapFn is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func ArrayMapFnToJS

func ArrayMapFnToJS(callback ArrayMapFnFunc) *ArrayMapFn

type ArrayMapFnFunc

type ArrayMapFnFunc func(value js.Value) interface{}

callback: ArrayMapFn

func ArrayMapFnFromJS

func ArrayMapFnFromJS(_value js.Value) ArrayMapFnFunc

type ArrayReduceCallback

type ArrayReduceCallback js.Func

ArrayReduceCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func ArrayReduceCallbackToJS

func ArrayReduceCallbackToJS(callback ArrayReduceCallbackFunc) *ArrayReduceCallback

type ArrayReduceCallbackFunc

type ArrayReduceCallbackFunc func(accumulator js.Value, currentValue js.Value, currentIndex int, array *Array) interface{}

callback: ArrayReduceCallback

func ArrayReduceCallbackFromJS

func ArrayReduceCallbackFromJS(_value js.Value) ArrayReduceCallbackFunc

type ArrayTestCallback

type ArrayTestCallback js.Func

ArrayTestCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func ArrayTestCallbackToJS

func ArrayTestCallbackToJS(callback ArrayTestCallbackFunc) *ArrayTestCallback

type ArrayTestCallbackFunc

type ArrayTestCallbackFunc func(element js.Value, index int, array *Array) bool

callback: ArrayTestCallback

func ArrayTestCallbackFromJS

func ArrayTestCallbackFromJS(_value js.Value) ArrayTestCallbackFunc

type ArrayValueCallback

type ArrayValueCallback js.Func

ArrayValueCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func ArrayValueCallbackToJS

func ArrayValueCallbackToJS(callback ArrayValueCallbackFunc) *ArrayValueCallback

type ArrayValueCallbackFunc

type ArrayValueCallbackFunc func(value js.Value, index int, array *Array) interface{}

callback: ArrayValueCallback

func ArrayValueCallbackFromJS

func ArrayValueCallbackFromJS(_value js.Value) ArrayValueCallbackFunc

type ArrayValueIterator

type ArrayValueIterator struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: ArrayValueIterator

func ArrayValueIteratorFromJS

func ArrayValueIteratorFromJS(value js.Value) *ArrayValueIterator

ArrayValueIteratorFromJS is casting a js.Value into ArrayValueIterator.

func ArrayValueIteratorFromWrapper

func ArrayValueIteratorFromWrapper(input core.Wrapper) *ArrayValueIterator

ArrayValueIteratorFromJS is casting from something that holds a js.Value into ArrayValueIterator.

func (*ArrayValueIterator) JSValue

func (_this *ArrayValueIterator) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*ArrayValueIterator) Next

func (_this *ArrayValueIterator) Next() (_result *ArrayValueIteratorValue)

type ArrayValueIteratorValue

type ArrayValueIteratorValue struct {
	Value js.Value
	Done  bool
}

dictionary: ArrayValueIteratorValue

func ArrayValueIteratorValueFromJS

func ArrayValueIteratorValueFromJS(value js.Value) *ArrayValueIteratorValue

ArrayValueIteratorValueFromJS is allocating a new ArrayValueIteratorValue object and copy all values in the value javascript object.

func (*ArrayValueIteratorValue) JSValue

func (_this *ArrayValueIteratorValue) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type DataView

type DataView struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: DataView

func DataViewFromJS

func DataViewFromJS(value js.Value) *DataView

DataViewFromJS is casting a js.Value into DataView.

func DataViewFromWrapper

func DataViewFromWrapper(input core.Wrapper) *DataView

DataViewFromJS is casting from something that holds a js.Value into DataView.

func (*DataView) JSValue

func (_this *DataView) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Float32Array

type Float32Array struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Float32Array

func Float32ArrayFromJS

func Float32ArrayFromJS(value js.Value) *Float32Array

Float32ArrayFromJS is casting a js.Value into Float32Array.

func Float32ArrayFromWrapper

func Float32ArrayFromWrapper(input core.Wrapper) *Float32Array

Float32ArrayFromJS is casting from something that holds a js.Value into Float32Array.

func (*Float32Array) JSValue

func (_this *Float32Array) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Float64Array

type Float64Array struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Float64Array

func Float64ArrayFromJS

func Float64ArrayFromJS(value js.Value) *Float64Array

Float64ArrayFromJS is casting a js.Value into Float64Array.

func Float64ArrayFromWrapper

func Float64ArrayFromWrapper(input core.Wrapper) *Float64Array

Float64ArrayFromJS is casting from something that holds a js.Value into Float64Array.

func (*Float64Array) JSValue

func (_this *Float64Array) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type FrozenArray

type FrozenArray struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: FrozenArray

func FrozenArrayFromJS

func FrozenArrayFromJS(value js.Value) *FrozenArray

FrozenArrayFromJS is casting a js.Value into FrozenArray.

func FrozenArrayFromWrapper

func FrozenArrayFromWrapper(input core.Wrapper) *FrozenArray

FrozenArrayFromJS is casting from something that holds a js.Value into FrozenArray.

func (*FrozenArray) JSValue

func (_this *FrozenArray) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Int16Array

type Int16Array struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Int16Array

func Int16ArrayFromJS

func Int16ArrayFromJS(value js.Value) *Int16Array

Int16ArrayFromJS is casting a js.Value into Int16Array.

func Int16ArrayFromWrapper

func Int16ArrayFromWrapper(input core.Wrapper) *Int16Array

Int16ArrayFromJS is casting from something that holds a js.Value into Int16Array.

func (*Int16Array) JSValue

func (_this *Int16Array) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Int32Array

type Int32Array struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Int32Array

func Int32ArrayFromJS

func Int32ArrayFromJS(value js.Value) *Int32Array

Int32ArrayFromJS is casting a js.Value into Int32Array.

func Int32ArrayFromWrapper

func Int32ArrayFromWrapper(input core.Wrapper) *Int32Array

Int32ArrayFromJS is casting from something that holds a js.Value into Int32Array.

func (*Int32Array) JSValue

func (_this *Int32Array) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Int8Array

type Int8Array struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Int8Array

func Int8ArrayFromJS

func Int8ArrayFromJS(value js.Value) *Int8Array

Int8ArrayFromJS is casting a js.Value into Int8Array.

func Int8ArrayFromWrapper

func Int8ArrayFromWrapper(input core.Wrapper) *Int8Array

Int8ArrayFromJS is casting from something that holds a js.Value into Int8Array.

func (*Int8Array) JSValue

func (_this *Int8Array) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type JavaScriptFunction

type JavaScriptFunction struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: JavaScriptFunction

func JavaScriptFunctionFromJS

func JavaScriptFunctionFromJS(value js.Value) *JavaScriptFunction

JavaScriptFunctionFromJS is casting a js.Value into JavaScriptFunction.

func JavaScriptFunctionFromWrapper

func JavaScriptFunctionFromWrapper(input core.Wrapper) *JavaScriptFunction

JavaScriptFunctionFromJS is casting from something that holds a js.Value into JavaScriptFunction.

func NewJavaScriptFunction

func NewJavaScriptFunction(argumentAndFunctionBody ...string) (_result *JavaScriptFunction)

func (*JavaScriptFunction) JSValue

func (_this *JavaScriptFunction) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*JavaScriptFunction) Length

func (_this *JavaScriptFunction) Length() int

Length returning attribute 'length' with type int (idl: long).

func (*JavaScriptFunction) Name

func (_this *JavaScriptFunction) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

type Object

type Object struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: object

func ObjectFromJS

func ObjectFromJS(value js.Value) *Object

ObjectFromJS is casting a js.Value into Object.

func ObjectFromWrapper

func ObjectFromWrapper(input core.Wrapper) *Object

ObjectFromJS is casting from something that holds a js.Value into Object.

func (*Object) JSValue

func (_this *Object) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Promise

type Promise struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseFromJS

func PromiseFromJS(value js.Value) *Promise

PromiseFromJS is casting a js.Value into Promise.

func PromiseFromWrapper

func PromiseFromWrapper(input core.Wrapper) *Promise

PromiseFromJS is casting from something that holds a js.Value into Promise.

func (*Promise) Catch

func (_this *Promise) Catch(onRejected *PromiseOnRejected) (_result *Promise)

func (*Promise) Finally

func (_this *Promise) Finally(onFinally *PromiseFinally) (_result *Promise)

func (*Promise) JSValue

func (_this *Promise) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Promise) Then

func (_this *Promise) Then(onFulfilled *PromiseOnFulfilled, onRejected *PromiseOnRejected) (_result *Promise)

type PromiseArrayBuffer

type PromiseArrayBuffer struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseArrayBufferFromJS

func PromiseArrayBufferFromJS(value js.Value) *PromiseArrayBuffer

PromiseArrayBufferFromJS is casting a js.Value into PromiseArrayBuffer.

func PromiseArrayBufferFromWrapper

func PromiseArrayBufferFromWrapper(input core.Wrapper) *PromiseArrayBuffer

PromiseArrayBufferFromJS is casting from something that holds a js.Value into PromiseArrayBuffer.

func (*PromiseArrayBuffer) Catch

func (_this *PromiseArrayBuffer) Catch(onRejected *PromiseArrayBufferOnRejected) (_result *PromiseArrayBuffer)

func (*PromiseArrayBuffer) Finally

func (_this *PromiseArrayBuffer) Finally(onFinally *PromiseFinally) (_result *PromiseArrayBuffer)

func (*PromiseArrayBuffer) JSValue

func (_this *PromiseArrayBuffer) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseArrayBuffer) Then

func (_this *PromiseArrayBuffer) Then(onFulfilled *PromiseArrayBufferOnFulfilled, onRejected *PromiseArrayBufferOnRejected) (_result *PromiseArrayBuffer)

type PromiseArrayBufferOnFulfilled

type PromiseArrayBufferOnFulfilled js.Func

PromiseArrayBufferOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseArrayBufferOnFulfilledFunc

type PromiseArrayBufferOnFulfilledFunc func(value *ArrayBuffer)

callback: PromiseTemplateOnFulfilled

func PromiseArrayBufferOnFulfilledFromJS

func PromiseArrayBufferOnFulfilledFromJS(_value js.Value) PromiseArrayBufferOnFulfilledFunc

type PromiseArrayBufferOnRejected

type PromiseArrayBufferOnRejected js.Func

PromiseArrayBufferOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseArrayBufferOnRejectedFunc

type PromiseArrayBufferOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseArrayBufferOnRejectedFromJS

func PromiseArrayBufferOnRejectedFromJS(_value js.Value) PromiseArrayBufferOnRejectedFunc

type PromiseBool

type PromiseBool struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseBoolFromJS

func PromiseBoolFromJS(value js.Value) *PromiseBool

PromiseBoolFromJS is casting a js.Value into PromiseBool.

func PromiseBoolFromWrapper

func PromiseBoolFromWrapper(input core.Wrapper) *PromiseBool

PromiseBoolFromJS is casting from something that holds a js.Value into PromiseBool.

func (*PromiseBool) Catch

func (_this *PromiseBool) Catch(onRejected *PromiseBoolOnRejected) (_result *PromiseBool)

func (*PromiseBool) Finally

func (_this *PromiseBool) Finally(onFinally *PromiseFinally) (_result *PromiseBool)

func (*PromiseBool) JSValue

func (_this *PromiseBool) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseBool) Then

func (_this *PromiseBool) Then(onFulfilled *PromiseBoolOnFulfilled, onRejected *PromiseBoolOnRejected) (_result *PromiseBool)

type PromiseBoolOnFulfilled

type PromiseBoolOnFulfilled js.Func

PromiseBoolOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseBoolOnFulfilledToJS

func PromiseBoolOnFulfilledToJS(callback PromiseBoolOnFulfilledFunc) *PromiseBoolOnFulfilled

type PromiseBoolOnFulfilledFunc

type PromiseBoolOnFulfilledFunc func(value bool)

callback: PromiseTemplateOnFulfilled

func PromiseBoolOnFulfilledFromJS

func PromiseBoolOnFulfilledFromJS(_value js.Value) PromiseBoolOnFulfilledFunc

type PromiseBoolOnRejected

type PromiseBoolOnRejected js.Func

PromiseBoolOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseBoolOnRejectedToJS

func PromiseBoolOnRejectedToJS(callback PromiseBoolOnRejectedFunc) *PromiseBoolOnRejected

type PromiseBoolOnRejectedFunc

type PromiseBoolOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseBoolOnRejectedFromJS

func PromiseBoolOnRejectedFromJS(_value js.Value) PromiseBoolOnRejectedFunc

type PromiseDataView

type PromiseDataView struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseDataViewFromJS

func PromiseDataViewFromJS(value js.Value) *PromiseDataView

PromiseDataViewFromJS is casting a js.Value into PromiseDataView.

func PromiseDataViewFromWrapper

func PromiseDataViewFromWrapper(input core.Wrapper) *PromiseDataView

PromiseDataViewFromJS is casting from something that holds a js.Value into PromiseDataView.

func (*PromiseDataView) Catch

func (_this *PromiseDataView) Catch(onRejected *PromiseDataViewOnRejected) (_result *PromiseDataView)

func (*PromiseDataView) Finally

func (_this *PromiseDataView) Finally(onFinally *PromiseFinally) (_result *PromiseDataView)

func (*PromiseDataView) JSValue

func (_this *PromiseDataView) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseDataView) Then

func (_this *PromiseDataView) Then(onFulfilled *PromiseDataViewOnFulfilled, onRejected *PromiseDataViewOnRejected) (_result *PromiseDataView)

type PromiseDataViewOnFulfilled

type PromiseDataViewOnFulfilled js.Func

PromiseDataViewOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseDataViewOnFulfilledFunc

type PromiseDataViewOnFulfilledFunc func(value *DataView)

callback: PromiseTemplateOnFulfilled

func PromiseDataViewOnFulfilledFromJS

func PromiseDataViewOnFulfilledFromJS(_value js.Value) PromiseDataViewOnFulfilledFunc

type PromiseDataViewOnRejected

type PromiseDataViewOnRejected js.Func

PromiseDataViewOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseDataViewOnRejectedFunc

type PromiseDataViewOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseDataViewOnRejectedFromJS

func PromiseDataViewOnRejectedFromJS(_value js.Value) PromiseDataViewOnRejectedFunc

type PromiseFinally

type PromiseFinally js.Func

PromiseFinally is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseFinallyToJS

func PromiseFinallyToJS(callback PromiseFinallyFunc) *PromiseFinally

type PromiseFinallyFunc

type PromiseFinallyFunc func()

callback: PromiseFinally

func PromiseFinallyFromJS

func PromiseFinallyFromJS(_value js.Value) PromiseFinallyFunc

type PromiseFrozenArray

type PromiseFrozenArray struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseFrozenArrayFromJS

func PromiseFrozenArrayFromJS(value js.Value) *PromiseFrozenArray

PromiseFrozenArrayFromJS is casting a js.Value into PromiseFrozenArray.

func PromiseFrozenArrayFromWrapper

func PromiseFrozenArrayFromWrapper(input core.Wrapper) *PromiseFrozenArray

PromiseFrozenArrayFromJS is casting from something that holds a js.Value into PromiseFrozenArray.

func (*PromiseFrozenArray) Catch

func (_this *PromiseFrozenArray) Catch(onRejected *PromiseFrozenArrayOnRejected) (_result *PromiseFrozenArray)

func (*PromiseFrozenArray) Finally

func (_this *PromiseFrozenArray) Finally(onFinally *PromiseFinally) (_result *PromiseFrozenArray)

func (*PromiseFrozenArray) JSValue

func (_this *PromiseFrozenArray) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseFrozenArray) Then

func (_this *PromiseFrozenArray) Then(onFulfilled *PromiseFrozenArrayOnFulfilled, onRejected *PromiseFrozenArrayOnRejected) (_result *PromiseFrozenArray)

type PromiseFrozenArrayOnFulfilled

type PromiseFrozenArrayOnFulfilled js.Func

PromiseFrozenArrayOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseFrozenArrayOnFulfilledFunc

type PromiseFrozenArrayOnFulfilledFunc func(value *FrozenArray)

callback: PromiseTemplateOnFulfilled

func PromiseFrozenArrayOnFulfilledFromJS

func PromiseFrozenArrayOnFulfilledFromJS(_value js.Value) PromiseFrozenArrayOnFulfilledFunc

type PromiseFrozenArrayOnRejected

type PromiseFrozenArrayOnRejected js.Func

PromiseFrozenArrayOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseFrozenArrayOnRejectedFunc

type PromiseFrozenArrayOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseFrozenArrayOnRejectedFromJS

func PromiseFrozenArrayOnRejectedFromJS(_value js.Value) PromiseFrozenArrayOnRejectedFunc

type PromiseInt

type PromiseInt struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseIntFromJS

func PromiseIntFromJS(value js.Value) *PromiseInt

PromiseIntFromJS is casting a js.Value into PromiseInt.

func PromiseIntFromWrapper

func PromiseIntFromWrapper(input core.Wrapper) *PromiseInt

PromiseIntFromJS is casting from something that holds a js.Value into PromiseInt.

func (*PromiseInt) Catch

func (_this *PromiseInt) Catch(onRejected *PromiseIntOnRejected) (_result *PromiseInt)

func (*PromiseInt) Finally

func (_this *PromiseInt) Finally(onFinally *PromiseFinally) (_result *PromiseInt)

func (*PromiseInt) JSValue

func (_this *PromiseInt) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseInt) Then

func (_this *PromiseInt) Then(onFulfilled *PromiseIntOnFulfilled, onRejected *PromiseIntOnRejected) (_result *PromiseInt)

type PromiseIntOnFulfilled

type PromiseIntOnFulfilled js.Func

PromiseIntOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseIntOnFulfilledToJS

func PromiseIntOnFulfilledToJS(callback PromiseIntOnFulfilledFunc) *PromiseIntOnFulfilled

type PromiseIntOnFulfilledFunc

type PromiseIntOnFulfilledFunc func(value int)

callback: PromiseTemplateOnFulfilled

func PromiseIntOnFulfilledFromJS

func PromiseIntOnFulfilledFromJS(_value js.Value) PromiseIntOnFulfilledFunc

type PromiseIntOnRejected

type PromiseIntOnRejected js.Func

PromiseIntOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseIntOnRejectedToJS

func PromiseIntOnRejectedToJS(callback PromiseIntOnRejectedFunc) *PromiseIntOnRejected

type PromiseIntOnRejectedFunc

type PromiseIntOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseIntOnRejectedFromJS

func PromiseIntOnRejectedFromJS(_value js.Value) PromiseIntOnRejectedFunc

type PromiseOnFulfilled

type PromiseOnFulfilled js.Func

PromiseOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseOnFulfilledToJS

func PromiseOnFulfilledToJS(callback PromiseOnFulfilledFunc) *PromiseOnFulfilled

type PromiseOnFulfilledFunc

type PromiseOnFulfilledFunc func(value js.Value)

callback: PromiseOnFulfilled

func PromiseOnFulfilledFromJS

func PromiseOnFulfilledFromJS(_value js.Value) PromiseOnFulfilledFunc

type PromiseOnRejected

type PromiseOnRejected js.Func

PromiseOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseOnRejectedToJS

func PromiseOnRejectedToJS(callback PromiseOnRejectedFunc) *PromiseOnRejected

type PromiseOnRejectedFunc

type PromiseOnRejectedFunc func(reason js.Value)

callback: PromiseOnRejected

func PromiseOnRejectedFromJS

func PromiseOnRejectedFromJS(_value js.Value) PromiseOnRejectedFunc

type PromiseSequenceString

type PromiseSequenceString struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseSequenceStringFromJS

func PromiseSequenceStringFromJS(value js.Value) *PromiseSequenceString

PromiseSequenceStringFromJS is casting a js.Value into PromiseSequenceString.

func PromiseSequenceStringFromWrapper

func PromiseSequenceStringFromWrapper(input core.Wrapper) *PromiseSequenceString

PromiseSequenceStringFromJS is casting from something that holds a js.Value into PromiseSequenceString.

func (*PromiseSequenceString) Catch

func (*PromiseSequenceString) Finally

func (_this *PromiseSequenceString) Finally(onFinally *PromiseFinally) (_result *PromiseSequenceString)

func (*PromiseSequenceString) JSValue

func (_this *PromiseSequenceString) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseSequenceString) Then

type PromiseSequenceStringOnFulfilled

type PromiseSequenceStringOnFulfilled js.Func

PromiseSequenceStringOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseSequenceStringOnFulfilledFunc

type PromiseSequenceStringOnFulfilledFunc func(value []string)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceStringOnFulfilledFromJS

func PromiseSequenceStringOnFulfilledFromJS(_value js.Value) PromiseSequenceStringOnFulfilledFunc

type PromiseSequenceStringOnRejected

type PromiseSequenceStringOnRejected js.Func

PromiseSequenceStringOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseSequenceStringOnRejectedFunc

type PromiseSequenceStringOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceStringOnRejectedFromJS

func PromiseSequenceStringOnRejectedFromJS(_value js.Value) PromiseSequenceStringOnRejectedFunc

type PromiseString

type PromiseString struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseStringFromJS

func PromiseStringFromJS(value js.Value) *PromiseString

PromiseStringFromJS is casting a js.Value into PromiseString.

func PromiseStringFromWrapper

func PromiseStringFromWrapper(input core.Wrapper) *PromiseString

PromiseStringFromJS is casting from something that holds a js.Value into PromiseString.

func (*PromiseString) Catch

func (_this *PromiseString) Catch(onRejected *PromiseStringOnRejected) (_result *PromiseString)

func (*PromiseString) Finally

func (_this *PromiseString) Finally(onFinally *PromiseFinally) (_result *PromiseString)

func (*PromiseString) JSValue

func (_this *PromiseString) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseString) Then

func (_this *PromiseString) Then(onFulfilled *PromiseStringOnFulfilled, onRejected *PromiseStringOnRejected) (_result *PromiseString)

type PromiseStringOnFulfilled

type PromiseStringOnFulfilled js.Func

PromiseStringOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseStringOnFulfilledToJS

func PromiseStringOnFulfilledToJS(callback PromiseStringOnFulfilledFunc) *PromiseStringOnFulfilled

type PromiseStringOnFulfilledFunc

type PromiseStringOnFulfilledFunc func(value string)

callback: PromiseTemplateOnFulfilled

func PromiseStringOnFulfilledFromJS

func PromiseStringOnFulfilledFromJS(_value js.Value) PromiseStringOnFulfilledFunc

type PromiseStringOnRejected

type PromiseStringOnRejected js.Func

PromiseStringOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseStringOnRejectedToJS

func PromiseStringOnRejectedToJS(callback PromiseStringOnRejectedFunc) *PromiseStringOnRejected

type PromiseStringOnRejectedFunc

type PromiseStringOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseStringOnRejectedFromJS

func PromiseStringOnRejectedFromJS(_value js.Value) PromiseStringOnRejectedFunc

type PromiseVoid

type PromiseVoid struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PromiseVoid

func PromiseVoidFromJS

func PromiseVoidFromJS(value js.Value) *PromiseVoid

PromiseVoidFromJS is casting a js.Value into PromiseVoid.

func PromiseVoidFromWrapper

func PromiseVoidFromWrapper(input core.Wrapper) *PromiseVoid

PromiseVoidFromJS is casting from something that holds a js.Value into PromiseVoid.

func (*PromiseVoid) Catch

func (_this *PromiseVoid) Catch(onRejected *PromiseVoidOnRejected) (_result *PromiseVoid)

func (*PromiseVoid) Finally

func (_this *PromiseVoid) Finally(onFinally *PromiseFinally) (_result *PromiseVoid)

func (*PromiseVoid) JSValue

func (_this *PromiseVoid) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseVoid) Then

func (_this *PromiseVoid) Then(onFulfilled *PromiseVoidOnFulfilled, onRejected *PromiseVoidOnRejected) (_result *PromiseVoid)

type PromiseVoidOnFulfilled

type PromiseVoidOnFulfilled js.Func

PromiseVoidOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseVoidOnFulfilledToJS

func PromiseVoidOnFulfilledToJS(callback PromiseVoidOnFulfilledFunc) *PromiseVoidOnFulfilled

type PromiseVoidOnFulfilledFunc

type PromiseVoidOnFulfilledFunc func()

callback: PromiseVoidOnFulfilled

func PromiseVoidOnFulfilledFromJS

func PromiseVoidOnFulfilledFromJS(_value js.Value) PromiseVoidOnFulfilledFunc

type PromiseVoidOnRejected

type PromiseVoidOnRejected js.Func

PromiseVoidOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseVoidOnRejectedToJS

func PromiseVoidOnRejectedToJS(callback PromiseVoidOnRejectedFunc) *PromiseVoidOnRejected

type PromiseVoidOnRejectedFunc

type PromiseVoidOnRejectedFunc func(reason js.Value)

callback: PromiseVoidOnRejected

func PromiseVoidOnRejectedFromJS

func PromiseVoidOnRejectedFromJS(_value js.Value) PromiseVoidOnRejectedFunc

type Uint16Array

type Uint16Array struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Uint16Array

func Uint16ArrayFromJS

func Uint16ArrayFromJS(value js.Value) *Uint16Array

Uint16ArrayFromJS is casting a js.Value into Uint16Array.

func Uint16ArrayFromWrapper

func Uint16ArrayFromWrapper(input core.Wrapper) *Uint16Array

Uint16ArrayFromJS is casting from something that holds a js.Value into Uint16Array.

func (*Uint16Array) JSValue

func (_this *Uint16Array) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Uint32Array

type Uint32Array struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Uint32Array

func Uint32ArrayFromJS

func Uint32ArrayFromJS(value js.Value) *Uint32Array

Uint32ArrayFromJS is casting a js.Value into Uint32Array.

func Uint32ArrayFromWrapper

func Uint32ArrayFromWrapper(input core.Wrapper) *Uint32Array

Uint32ArrayFromJS is casting from something that holds a js.Value into Uint32Array.

func (*Uint32Array) JSValue

func (_this *Uint32Array) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Uint8Array

type Uint8Array struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Uint8Array

func Uint8ArrayFromJS

func Uint8ArrayFromJS(value js.Value) *Uint8Array

Uint8ArrayFromJS is casting a js.Value into Uint8Array.

func Uint8ArrayFromWrapper

func Uint8ArrayFromWrapper(input core.Wrapper) *Uint8Array

Uint8ArrayFromJS is casting from something that holds a js.Value into Uint8Array.

func (*Uint8Array) JSValue

func (_this *Uint8Array) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Directories

Path Synopsis
Package missingtypes contains types that can't be found.
Package missingtypes contains types that can't be found.

Jump to

Keyboard shortcuts

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