Skip to content

Instantly share code, notes, and snippets.

@Hywan
Created May 28, 2019 13:52
Show Gist options
  • Save Hywan/99c8cf7d58df846e222ca163788cc3aa to your computer and use it in GitHub Desktop.
Save Hywan/99c8cf7d58df846e222ca163788cc3aa to your computer and use it in GitHub Desktop.
Go Wasm example, simple.rs
#[no_mangle]
pub extern fn sum(x: i32, y: i32) -> i32 {
x + y
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment