github.com/EngineerKamesh/gofullstack@v0.0.0-20180609171605-d41341d7d4ee/volume3/section1/basics/client/builtindemo.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/gopherjs/jsbuiltin"
     5  	"honnef.co/go/js/dom"
     6  )
     7  
     8  func builtinDemo(element dom.Element) {
     9  
    10  	if jsbuiltin.TypeOf(element) == "object" {
    11  		println("Using the typeof operator, we can see that the element that was clicked, is an object.")
    12  	}
    13  
    14  }