Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResolver ¶
NewResolver returns exec.Resolver which resolvers symbols needed by go runtime
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder decode Go types from wasm memory
func NewDecoder ¶
NewDecoder instances a new Decoder from given memory and offset
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder encodes go type to wasm memory
func NewEncoder ¶
NewEncoder instances a new Encoder
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime implements the runtime needed to run wasm code compiled by go toolchain
func RegisterRuntime ¶
RegisterRuntime 用于向exec.Context里面注册一个初始化好的js Runtime
Click to show internal directories.
Click to hide internal directories.