You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
When developing this package, I often ask myself if there would be a way to make it easier to use.
I'm pretty satisfied with the current way to describe an interface but sometimes, I wonder if it would be even more simple to use only Go rather than mixing it with HTML.
Go with html
The way it is done today is by creating a component by mixing go code and html code.
Here is the Hello example:
Binding functions or fields to html callback can be a little bit confusing at the first read.
Parsing html have a cost in performance (not noticeable yet but the goal is to be fast!).
Only go
When I started building this repo, I tried to use only Go struct. The result was verbose and confusing to a point where I found writing html far more clean.
Though, last night I tried to gave it another try and see if it was possible to make something clean in Go. Here is what would look like the Hello component written only in go:
Hello,
When developing this package, I often ask myself if there would be a way to make it easier to use.
I'm pretty satisfied with the current way to describe an interface but sometimes, I wonder if it would be even more simple to use only Go rather than mixing it with HTML.
Go with html
The way it is done today is by creating a component by mixing go code and html code.
Here is the Hello example:
While it works pretty well, there is areas where I'm not totally satisfied:
Only go
When I started building this repo, I tried to use only Go struct. The result was verbose and confusing to a point where I found writing html far more clean.
Though, last night I tried to gave it another try and see if it was possible to make something clean in Go. Here is what would look like the Hello component written only in go:
Here is what we would benefit:
Let me know what you think
This is just an idea. The priority is to finish the Windows driver.
Please let me know what you think. Either by the poll below or by commenting.
The text was updated successfully, but these errors were encountered: