e7d1a98c5e
Co-authored-by: Michael <[michael.matur@gmail.com](mailto:michael.matur@gmail.com)>
18 lines
419 B
Go
18 lines
419 B
Go
//go:build windows
|
|
|
|
package plugins
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/tetratelabs/wazero"
|
|
)
|
|
|
|
type ContextApplier func(ctx context.Context) context.Context
|
|
|
|
// InstantiateHost instantiates the Host module.
|
|
func InstantiateHost(ctx context.Context, runtime wazero.Runtime, mod wazero.CompiledModule, settings Settings) (ContextApplier, error) {
|
|
return func(ctx context.Context) context.Context {
|
|
return ctx
|
|
}, nil
|
|
}
|