github.com/EngineerKamesh/gofullstack@v0.0.0-20180609171605-d41341d7d4ee/volume3/section1/basics/client/alertmsg.go (about) 1 package main 2 3 import ( 4 "github.com/gopherjs/gopherjs/js" 5 "honnef.co/go/js/dom" 6 ) 7 8 func DisplayAlertMessageJSGlobal(message string) { 9 js.Global.Call("alert", message) 10 } 11 12 func DisplayAlertMessageDOM(message string) { 13 dom.GetWindow().Alert(message) 14 }