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... :-)
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.