Skip to content

Instantly share code, notes, and snippets.

@Xjs
Created August 30, 2018 07:44
Show Gist options
  • Save Xjs/d6b879915716dddff486301a169b4c21 to your computer and use it in GitHub Desktop.
Save Xjs/d6b879915716dddff486301a169b4c21 to your computer and use it in GitHub Desktop.
Call insertRow() from wasm in Go
package main
import (
"syscall/js"
)
func main() {
document := js.Global().Get("document")
table := document.Call("getElementById", "myTable")
table.Call("insertRow")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment