Categorygithub.com/patrickhuber/go-wasm
module
0.0.0-20241111202057-abde265a3c63
Repository: https://github.com/patrickhuber/go-wasm.git
Documentation: pkg.go.dev

# README

go-wasm

experiments with wasm

Phases

sequenceDiagram    
    alt binary
        Machine->>Decoder: Decode(Binary)
        Decoder->>Machine: Api
    else text
        Machine->>Decoder: Decode(Text) Api
        Decoder->>Machine: Api
    end
    Machine->>Validator: Validate(Api)
    Validator->>Machine: []Errors
    Machine->>Instantiator: Instantiate(Api)
    Instantiator->>Machine: Instance
    Machine->>Invoker: Invoke(Instance, ExternalFunction)

Structure

classDiagram
    
    DirectiveApi<|--ModuleApi
    DirectiveApi<|--ComponentApi

    namespace binary{
        class BinaryDecoder{
            +decode(bytes) : DirectiveApi
        }        
    }
    namespace text{
        class TextDecoder{
            +decode(bytes) : DirectiveApi
        }   
    }
    namespace api{
        class DirectiveApi
        class ModuleApi
        class ComponentApi
    }
    namespace instance{
        class DirectiveInstance
        class ModuleInstance
        class ComponentInstancce
    }
    namespace machine{
        class Machine{
            +instantiate(DirectiveApi) : DirectiveInstance
            +invoke(ModuleInstance)
            +call(ComponentInstance, ExternalFunction)
        }
    }

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
The binary package handles reading and writing of wasm binary files https://webassembly.github.io/spec/core/binary/index.html */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author