Skip to content

wasm: Add example with two modules #3154

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

Open
codefromthecrypt opened this issue Sep 11, 2022 · 0 comments
Open

wasm: Add example with two modules #3154

codefromthecrypt opened this issue Sep 11, 2022 · 0 comments
Labels
docs Documentation needed

Comments

@codefromthecrypt
Copy link
Contributor

We need another example where one module exports a function another module imports (both compiled by TinyGo with -target=wasm). Making the example here has the advantage of being testable. That said, the current site content doesn't make it easy to discover which examples exist. There may be some work on that side to improve discovery.

Note that a PR to affect the site is not in this repo (https://github.com/tinygo-org/tinygo-site/blob/release/content/docs/guides/webassembly.md)


We have recently a bit more discovery in wasm examples recently. Notably, you can see a list of sorts of examples. However, it isn't on the release branch, yet, so not navigable from the website guide.

minor note that a guide should include a end to end example of a module exporting a function, another module importing it, and then executing the resulting modules. something along this line.

Originally posted by @james-lawrence in #3147 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation needed
Projects
None yet
Development

No branches or pull requests

2 participants