Skip to content

fix: readme/tinygo examples use go:wasmexport/wasmimport, -buildmode=c-shared#52

Merged
evacchi merged 2 commits intomainfrom
tinygo-readme
Jan 24, 2025
Merged

fix: readme/tinygo examples use go:wasmexport/wasmimport, -buildmode=c-shared#52
evacchi merged 2 commits intomainfrom
tinygo-readme

Conversation

@evacchi
Copy link
Contributor

@evacchi evacchi commented Jan 23, 2025

I have kept the examples with //export because this will work on both Tiny and Big Go. Once the new Go version is out we can change them all to //go:wasmexport. Notice that the -buildmode=c-shared flag and the //go:wasmexport at that point will be aligned in semantics in both compilers, see golang/go#65199

Copy link
Contributor

@mhmd-azeez mhmd-azeez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@evacchi evacchi merged commit ff1c4f6 into main Jan 24, 2025
4 checks passed
@evacchi evacchi deleted the tinygo-readme branch January 24, 2025 18:37
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

Successfully merging this pull request may close these issues.

2 participants