We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I started to play with gotron yesterday, it is annoying fact that we need to construct a struct in order to start listening to an event.
gotron
window.On(&gotron.Event{Event: "event-name"}, func(bin []byte) { //Handle event here }
It will be such cleaner API, if On method can accept String param as following:
On
String
window.On("event-name", func(bin []byte) { //Handle event here }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I started to play with
gotron
yesterday, it is annoying fact that we need to construct a struct in order to start listening to an event.It will be such cleaner API, if
On
method can acceptString
param as following:The text was updated successfully, but these errors were encountered: