/ web / helpers.js
helpers.js
1    // Expose a global function to call setTimeout with a Go callback
2    window.goAppSetTimeout = function(cb, delay) {
3      return setTimeout(cb, delay);
4    };
5  
6    window.goAppClearTimeout = function(id) {
7      clearTimeout(id);
8    };