Created
May 28, 2019 14:39
-
-
Save Hywan/f76c8f41afcc26426cc39a864af5fcfa to your computer and use it in GitHub Desktop.
Go Wasm example, memory.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[no_mangle] | |
pub extern fn return_hello() -> *const u8 { | |
b"Hello, World!\0".as_ptr() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment