olin: within.website/olin/abi/wasmgo Index | Files

package wasmgo

import "within.website/olin/abi/wasmgo"

Package wasmgo contains hacks and bindings in order to "mixin" the Go webassembly ABI to another webassembly module.


Package Files

abi.go doc.go js.go wasmgo.go


var (
    // ImplementedGoABIFuncs is not used at runtime. This is used for documentation only.
    ImplementedGoABIFuncs = []string{
var Undefined = &struct{}{}

Undefined isn't defined, but we have to make it _something_.

type ArrayBuffer Uses

type ArrayBuffer struct {
    Data []byte

ArrayBuffer is a wrapper around arrays for "JS" interop

type FuncWrapper Uses

type FuncWrapper struct {
    // contains filtered or unexported fields

type Object Uses

type Object struct {
    Props map[string]interface{}
    New   func(args []interface{}) interface{}

Object is a generic JS-like object.

type TypedArray Uses

type TypedArray struct {
    Buffer *ArrayBuffer
    Offset int
    Length int

TypedArray is an ArrayBuffer with an offset and length

type WasmGo Uses

type WasmGo struct {

    BootTime   time.Time
    Exited     bool
    StatusCode int32
    Memory     *ArrayBuffer
    // contains filtered or unexported fields

func New Uses

func New(name string, argv []string, env map[string]string) *WasmGo

func (*WasmGo) ResolveFunc Uses

func (w *WasmGo) ResolveFunc(module, field string) exec.FunctionImport

func (*WasmGo) ResolveGlobal Uses

func (w *WasmGo) ResolveGlobal(module, field string) int64

ResolveGlobal does nothing, currently.

Package wasmgo imports 10 packages (graph). Updated 2019-11-19. Refresh now. Tools for package owners.