Skip to content

Instantly share code, notes, and snippets.

@deezone
Created May 19, 2020 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deezone/1f066f7233f3ab9f058aa3d3f7ee1dec to your computer and use it in GitHub Desktop.
Save deezone/1f066f7233f3ab9f058aa3d3f7ee1dec to your computer and use it in GitHub Desktop.
WASM - DOM Access - main.go
// +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