Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup startup function? #238

Closed
snaffi opened this issue Jan 15, 2025 · 1 comment
Closed

How to setup startup function? #238

snaffi opened this issue Jan 15, 2025 · 1 comment

Comments

@snaffi
Copy link

snaffi commented Jan 15, 2025

I'm trying to execute exported WASM functions which were built by Go 1.24rc1 , but they requires to have _initialize as a start function

how can I do it?

golang/go#71240 (comment)

@Zxilly
Copy link

Zxilly commented Jan 15, 2025

You can call it manually

nom := instance.GetFunc(store, "_initialize")
_, err = nom.Call(store)

@snaffi snaffi closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants