I believe what @NobbZ is trying to suggest to you is:
Your backend which would be written in go will interact with database and it will expose some APIs to handle data exchange. Ones you have all you APIs functional, your UI will be making API calls to your backend requesting user information, storing data etc.
Here is example https://medium.com/@kelvin_sp/building-and-testing-a-rest-api-in-golang-using-gorilla-mux-and-mysql-1f0518818ff6
Another possible way using java script and golang is to use the native libraries
Example GopherJS Playground
Again this is general guides as I’m not familier with your application architecture. I hope that helps.