I'm coding simple app and I use Golang for this purpose. Nowadays there's no exact way to create GUI, so I have to load one of libs - webview. So as far as I understood, I can trigger actions from front-end using JS external.invoke('eventName')
.
Also I can push data from back- to front-end using Go
simpleJS := ``console.log("`` + myVar + ``") w.Eval(simpleJS)
(there ` should not be doubled)
So the question is how can I get data from JS. As I understand trigger have only its name, not more. As closest probable solution I decided to stringify wrap of eventName + data and parse it on Backend