Created
May 19, 2020 11:49
-
-
Save deezone/1f066f7233f3ab9f058aa3d3f7ee1dec to your computer and use it in GitHub Desktop.
WASM - DOM Access - main.go
This file contains 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
// +build js,wasm | |
package main | |
import ( | |
"syscall/js" | |
"fmt" | |
) | |
func main() { | |
fmt.Println("Hello SoulCycle WASM from Go!") | |
js.Global().Call("updateDOM", "Hello, this is a Wasm binary written in Go") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment