MCPcopy Create free account
hub / github.com/dispatchrun/wazergo / Instantiate

Method Instantiate

module.go:30–30  ·  view source on GitHub ↗

Creates a new instance of the host module type, using the list of options passed as arguments to configure it. This method is intended to be called automatically when instantiating a module via an instantiation context.

(ctx context.Context, options ...Option[T])

Source from the content-addressed store, hash-verified

28 // passed as arguments to configure it. This method is intended to be called
29 // automatically when instantiating a module via an instantiation context.
30 Instantiate(ctx context.Context, options ...Option[T]) (T, error)
31}
32
33// Build builds the host module p in the wazero runtime r, returning the

Callers 4

InstantiateMethod · 0.65
InstantiateFunction · 0.65
loadModuleFunction · 0.65
InstantiateMethod · 0.65

Implementers 1

pluginfunction_test.go

Calls

no outgoing calls

Tested by 1

loadModuleFunction · 0.52