Documentation
¶
Rendered for js/wasm
Overview ¶
Package jsutil provides general functionality for any application running on wasm.
Index ¶
- Variables
- func ConsoleLog(args ...interface{})
- func CreateURLObject(data interface{}, mime string) js.Value
- func Dump(args ...interface{})
- func Sdump(args ...interface{}) string
- func SliceToByteSlice(s interface{}) (b []byte)
- type ByteDecoder
- func (d *ByteDecoder) Float32Slice(b []byte) []float32
- func (d *ByteDecoder) Float64Slice(b []byte) []float64
- func (d *ByteDecoder) Int16Slice(b []byte) []int16
- func (d *ByteDecoder) Int32Slice(b []byte) []int32
- func (d *ByteDecoder) Int64Slice(b []byte) []int64
- func (d *ByteDecoder) Int8Slice(b []byte) []int8
- func (d *ByteDecoder) Uint16Slice(b []byte) []uint16
- func (d *ByteDecoder) Uint32Slice(b []byte) []uint32
- func (d *ByteDecoder) Uint64Slice(b []byte) []uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var (
IsWorker bool
)
IsWorker boolean
Functions ¶
func CreateURLObject ¶
CreateURLObject creates an url object from javascript source.
func SliceToByteSlice ¶
func SliceToByteSlice(s interface{}) (b []byte)
SliceToByteSlice creates a slice of bytes from numeric slices.
Types ¶
type ByteDecoder ¶
type ByteDecoder struct{}
ByteDecoder decodes bytes into various slices.
func (*ByteDecoder) Float32Slice ¶
func (d *ByteDecoder) Float32Slice(b []byte) []float32
func (*ByteDecoder) Float64Slice ¶
func (d *ByteDecoder) Float64Slice(b []byte) []float64
func (*ByteDecoder) Int16Slice ¶
func (d *ByteDecoder) Int16Slice(b []byte) []int16
func (*ByteDecoder) Int32Slice ¶
func (d *ByteDecoder) Int32Slice(b []byte) []int32
func (*ByteDecoder) Int64Slice ¶
func (d *ByteDecoder) Int64Slice(b []byte) []int64
func (*ByteDecoder) Int8Slice ¶
func (d *ByteDecoder) Int8Slice(b []byte) []int8
func (*ByteDecoder) Uint16Slice ¶
func (d *ByteDecoder) Uint16Slice(b []byte) []uint16
func (*ByteDecoder) Uint32Slice ¶
func (d *ByteDecoder) Uint32Slice(b []byte) []uint32
func (*ByteDecoder) Uint64Slice ¶
func (d *ByteDecoder) Uint64Slice(b []byte) []uint64
Click to show internal directories.
Click to hide internal directories.