News for hackers. Stuff that matters.
Re:Wails v2 Released by afavour on Friday September 23, 2022 @02:17PM (#32955336)
> The only thing different about the front end code vs a website is that it calls functions generated from my Go back end (fully typed!) instead of making an HTTP call

Now take it to the next level: put those functions in a service worker and create a REST API that works entirely locally and can be switched out for a remote server with ease.

Or don’t, if you have no intention of making a web version. But IMO it’s a powerful model for those who do.

Re:Wails v2 Released by cheriot on Friday September 23, 2022 @03:16PM (#32955922)
That's an interesting point about service workers. My thinking is to layer them in the other order: the generated types are based on Go struct json tags so the function signatures I'm calling could be implemented as REST calls. ie SomeEndpoint(paramA: string, paramB: string): Promise<SomeEndpointResponse>

The notion of a web version is a distant one for the current project so it's only a theory.

Re:Wails v2 Released by hogyncymraeg on Monday September 26, 2022 @06:24AM (#32981341)
Not...that...far... :-)