tinygo-site
tinygo-site copied to clipboard
Document `//export` requirement
trafficstars
The page here says the following:
// This function is imported from JavaScript, as it doesn't define a body.
// You should define a function named 'main.add' in the WebAssembly 'env'
// module from JavaScript.
func add(x, y int) int
That's outdated, and needs to be updated.
@aykevl thanks for pointing this out ! really interested in the correct procedure, it should be done using syscall/js ?