I have written a simple package in Go and I have compiled with gopherJS .
I have then included it my HTML via
<script src="./testgopher.js">
It has been loaded and all is well. But I am not sure how I can reuse a go function that has been declared in one of packages inside my own javascript.
What I want to do is in another script tag
<script> testpkg.Testfunc() </script>
where the testpkg and Testfunc have been written in go.
I tried to look into the window object and it doesnt look like the function has been added to window.