Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WasmModuleRef ¶
type WasmModuleRef struct {
Filepath string `json:"filepath"`
Name string `json:"name"`
FQFN string `json:"fqfn"`
Data []byte `json:"data"`
}
WasmModuleRef is a reference to a Wasm module (either its filepath or its bytes)
func RefWithData ¶
func RefWithData(name, fqfn string, data []byte) *WasmModuleRef
RefWithData returns a module ref from module bytes
func (*WasmModuleRef) Bytes ¶
func (w *WasmModuleRef) Bytes() ([]byte, error)
Bytes returns the bytes for the module
Click to show internal directories.
Click to hide internal directories.