Skip to content

Commit a63af00

Browse files
authored
Merge pull request #237 from saschagrunert/wasm
Fix wasm example
2 parents e3bff1d + 44b2861 commit a63af00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/wasm/plugin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ import (
2424

2525
type plugin struct{}
2626

27-
func main() {
27+
func init() {
2828
api.RegisterPlugin(&plugin{})
2929
}
3030

31+
func main() {}
32+
3133
func log(ctx context.Context, msg string) {
3234
api.NewHostFunctions().Log(ctx, &api.LogRequest{
3335
Msg: "WASM: " + msg,

0 commit comments

Comments
 (0)