Documentation
¶
Index ¶
- Variables
- func ConvertTypedArrayToFloat64Slice(value js.Value) []float64
- func CreateCanvasElement() js.Value
- func CreateElementNS(name string) js.Value
- func FuncOf(fn func(this JsValue, args JsValueSlice) any) js.Func
- func If[T any](cmp bool, okVal, elseVal T) T
- func IfFunc[T any](cmp bool, okVal, elseVal func() T) T
- func InstanceOf(value *js.Value, className string) bool
- func JsNull() js.Value
- func JsUndefined() js.Value
- func NotNullOrDefault[T any](val *T, defaultVal T) T
- type JsValue
- type JsValueSlice
Constants ¶
This section is empty.
Variables ¶
View Source
var JsGlobal = js.Global()
Functions ¶
func CreateCanvasElement ¶
func CreateElementNS ¶
func JsUndefined ¶
func NotNullOrDefault ¶
func NotNullOrDefault[T any](val *T, defaultVal T) T
Types ¶
type JsValueSlice ¶
Click to show internal directories.
Click to hide internal directories.