It is really cool to run Go code in the browser. GopherJS is a compiler from
In this post, we will show how to use XMLHttpRequest (XHR) to send HTTP GET
requests to retrieve JSON data from remote server.
Put demo.js together with the index.html and sukhada.json in the same
directory. You need a simple HTTP server to run this demo. Use
GopherJS serve command to serve the above files, and open your browser
console to see the output.