A basic, barebones web app, intented to be used as a starting point for developing an Isomorphic Go application.

client.go 469B

1234567891011
  1. package main
  2. import "honnef.co/go/js/dom"
  3. func main() {
  4. println("The sample Isomorphic Go skeleton web app successfully printed to your web browser console using GopherJS!")
  5. d := dom.GetWindow().Document()
  6. h := d.GetElementByID("welcomeMessage")
  7. h.SetInnerHTML("<p>The sample Isomorphic Go skeleton web app is working successfully.</p><p>GopherJS was used to print this welcome message.</p><p>There's another message waiting in your web browser console.</p>")
  8. }