Documentation ¶
Overview ¶
Package jsconv contains methods to help for syscall/js api
Index ¶
- func Float32ToJs(src []float32) js.Value
- func Float64ToJs(src []float64) js.Value
- func Int16ToJs(src []int16) js.Value
- func Int32ToJs(src []int32) js.Value
- func Int8ToJs(src []int8) js.Value
- func JsToFloat32(array js.Value) []float32
- func JsToFloat64(array js.Value) []float64
- func JsToInt16(array js.Value) []int16
- func JsToInt32(array js.Value) []int32
- func JsToInt8(array js.Value) []int8
- func JsToUInt16(array js.Value) []uint16
- func JsToUInt32(array js.Value) []uint32
- func JsToUInt8(array js.Value) []uint8
- func UInt16ToJs(src []uint16) js.Value
- func UInt32ToJs(src []uint32) js.Value
- func UInt8ToJs(src []uint8) js.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float32ToJs ¶
Float32ToJs is converting []float32 to a new javascript Float32Array.
func Float64ToJs ¶
Float64ToJs is converting []float64 to a new javascript Float64Array.
func JsToFloat32 ¶
JsToFloat32 convert javascript Float32Array to Go float32.
func JsToFloat64 ¶
JsToFloat64 convert javascript Float64Array to Go float64.
func JsToUInt16 ¶
JsToUInt16 convert javascript Uint16Array to Go uint16.
func JsToUInt32 ¶
JsToUInt32 convert javascript Uint32Array to Go uint32.
func UInt16ToJs ¶
UInt16ToJs is converting []uint16 to a new javascript Uint16Array.
func UInt32ToJs ¶
UInt32ToJs is converting []uint32 to a new javascript Uint32Array.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.